AGS 3D

Started by DoorKnobHandle, Sun 15/05/2005 15:21:53

Previous topic - Next topic

strazer


X-Hunter Blackzero

I really think you should consider more big picture like you have been before AGS....... 

kadok

I have a question, will be possible in AGS thanks to this 3Dplugin for AGS from member [...], to make a 2D car race  top down -view game (like micromachines) but where world rotate around vehicle while changing directions (like in 3D games)  ???
sorry for may english... it's not my native language so I may make some mistake's

DoorKnobHandle

Please note that the Script Module is still in development phase. If everything is going fine, then you should be able to do so, but I can't promise too much...  ;D

DoorKnobHandle

AGS 3D SOURCE CODE IS RELEASED!

I have decided to release the complete project including the source code, because I don't have enough time now or in the nearer future to go on with the project.

I'd love to see other members here including new functions or functionalities and using it in their project, so you could kinda look at this as a community project to add 3D to AGS, because it IS possible...

Major additions that still aren't included or don't work yet are:

- Backface culling ( Implemented but not working properly )
- Rotation ( Implemented but not working properly )

Also note that there is documentation, but the source code is pretty heavily commented so you will be able to understand everything. If not then ask in this thread please...

But now finally to the link: HERE is it!

Have fun!


Haddas

Hmmm... I get an error with rotating, but it is, as you say, not working properly yet. The error I found was

Error: run_text_script1: error -6 running function 'repeatedly execute':
Error: Floating point divided by zero
in Global script (line 437)
from Global script (line 589)

DoorKnobHandle

Well, now that I released the source code you can take a look at it for yourself.

The rotation works sometimes and sometimes it doesn't but even when it works (ie not returning a division by zero error ) then it will only screw up the scene. You'll see what I mean.

Haddas

Indeed I do. Well, I hope someone fixes it someday,, because let's face it, I lack everything in the skills departement when it comes to scripting... and 3D. Why does it screw the scene up, though?

DoorKnobHandle

To rotate several elements of a formula get divised. I guess there is an error in the formula or somewhere else that makes one element zero when it shouldn't be zero and you have your division by zero error!

Haddas

That sounds so meaningful and important I wish I understood a word of it. You obviously know what you're doing. You'd make a great politician.

DoorKnobHandle

Um, I'll take this as a compliment, but really I am way to honest to become a politician... ;)

Scummbuddy

Should this be moved to the Tech Archive, and then my post subsequentially deleted?
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

Kweepa

I did some work on this to encourage you to continue, [...].

http://www.steporg.com/step/ags/games/ags3d.zip

I changed it over to 320x240, 16 bit so that the lighting would look better.
I also fixed the rotation, the lighting, and the backface culling.

Still to do:
- clipping at the near clip plane - AGS clips at the screen edges.
- other primitives (pyramid and sphere would probably be enough).
- movement, rotation, and scaling of the primitives.
- sorting the draw order of the primitives.
- mouse look.
- multiple lights.
- movement relative to the camera.
- drawing scaled sprites?
- making a game out of it!
Still waiting for Purity of the Surf II

DoorKnobHandle

#73
Your work is amazing, Steve. I'd love to devote myself more into this project, but since work on the Indy: FoY demo is really demanding at the moment, I don't think I have enough time. Anyways, if I can find the time, then I'll make sure to continue this project.

EDIT:

I just did some minor updates on your version.

I included the following:

- Mouse look ( you rotate the camera by moving the mouse )
- Added a small cube at the light position to represent a light bulb
- Added the functionality to move the light around in all three dimensions with all lighting and the little cube updating to the new position
- Better keyboard controls
- Resetting the scene works better now

Here is the LINK!

You might have to copy&paste or drag&drop the link into a new window for it to start downloading...

Kweepa

#74
Nice work on the mouse look!

I updated it a bit more to make the mouse look more responsive, and added:
- clipping
- primitives (sphere and pyramid)
- movement relative to the camera
- basic draw order sorting
- movement and scaling of primitives
- some speedups



http://www.steporg.com/step/ags/games/ags3d.zip

Now todo:
- collisions (stop the player walking into the primitives)
- primitive rotation
- multiple lights
- drawing scaled sprites
- better sorting?
- make game.

[EDIT] Updated progress
Still waiting for Purity of the Surf II

Rui 'Trovatore' Pires

<sigh of pleasure, nay, perhaps even - dare I say - moan> It really is a beautiful thing, guys, to see the progress in this thing, and at this rate. :D
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Ubel

It was awesome! Too bad it crashed :P

Here's the error report:

Code: ags
---------------------------
Adventure Game Studio
---------------------------
An internal error has occured. Please note down the following information.
If the problem persists, contact Chris Jones.
(ACI version 2.70.864)

Error: run_text_script1: error -6 running function 'repeatedly_execute':
Error: Array index out of bounds (index: 6, bounds: 0..5)
in Global script (line 561)
from Global script (line 610)
from Global script (line 646)
from Global script (line 706)
from Global script (line 833)
from Global script (line 864)
(and more...)


The crash happened when I tried to go through the blue box on the left side. Hope this information helps.

Kweepa

#77
Don't go through the blue box then :)
Thanks for the report - very useful. I'll take a look at it.

[EDIT] Ok, I see what I did wrong. Poor assumption on my part. Fixed and uploaded. Ta!
Still waiting for Purity of the Surf II

DoorKnobHandle

#78
Amazing work, Steve. By now I have to say you gave this project more progress than I did. Looking great.

I noticed the PAGE UP and PAGE DOWN keys are working the wrong way, but that maybe due to my german keyboard. Also, going inside the blue box results in returning the error, that Pablo kindly reported.

I hope that I can still do some things for the project.

Oh and next time some newbie asks whether 3d is possible with AGS, we all will actually have to think twice... ;D

Kweepa

The PAGEUP and PAGEDOWN might be because I compiled with 2.70 and didn't have support for those keys. The latest version uses 2.71b3. They may be inverted.
If you feel like jumping in and doing something, let me know and I'll put the latest version on steporg.com.

Meanwhile, I added rotation of primitives.
Disco ball!
Still waiting for Purity of the Surf II

SMF spam blocked by CleanTalk