Page 1 of 2

Project's status report - and help!

Posted: Mon May 31, 2004 11:06 pm
by afecelis
Hi guys,

After a week of intense trial and error and bugging everyone in the forums (he he he ehhe ) I can now post some images of what I've learned and how far I've taken the level I'm working on.

Image1:
http://www.theshower.nl/cgi-bin/genesis ... /prog1.jpg
nothing special, the spawn point. A light with a billboard attached.

Image2:
http://www.theshower.nl/cgi-bin/genesis ... /prog2.jpg
Walking down the corridor. I placed a wall blocking visual to avoid straining the rendering pipeline (since my level is so axial). Orange fog enabled

Image3:
http://www.theshower.nl/cgi-bin/genesis ... /prog3.jpg
the wall! h ehe heh e. And particle systems are showing up ok (greenish)

Image4:
http://www.theshower.nl/cgi-bin/genesis ... /prog4.jpg
The rest of the stuff- adding a 3d model, making its material transparent and emmisive in red, making it spin with a rotate animator, creating 4 lights with circle animators and a billboard attached to them. Notice that the particles that are further look purplish and the closer ones are beginning to fade out.

Image5:
http://www.theshower.nl/cgi-bin/genesis ... /prog5.jpg
Looking from the opposite side- the model looses its red emmisive properties as it spins, and gets back at certain angles. Particles completely disappear. Only the lights are ok (misplaced from the lamps because of the circle animator, but ok).

Image6:
http://www.theshower.nl/cgi-bin/genesis ... /prog6.jpg
Going down!!!! Notice that when getting back to the previous point of view, particles show up again. Check also that the one on the left is ok (green) but the one on the right is beginning to fade away (purplish).

Image7:
http://www.theshower.nl/cgi-bin/genesis ... /prog7.jpg
the new corridor

Image8:
http://www.theshower.nl/cgi-bin/genesis ... /prog8.jpg
the corridor from the opposite side

Ok guys, I hope this gives you an idea of where I am now (I know I got a longer way to go yet), and also helps you understand the problems I'm having. If you got any suggestions please let me know!!!!

cheers!

Posted: Tue Jun 01, 2004 12:32 am
by c_olin3404
did you make those textures?

Posted: Tue Jun 01, 2004 12:49 am
by afecelis
nope, It's from a project I ran into when working with the Ca3de team.

I gotta ask the author for his permission before releasing anything.

Posted: Tue Jun 01, 2004 1:03 am
by afecelis
hey guys, I was able to fix it!!!

There was an EMF_LIGHTING flag in my picker for collision at the end of the code that I still had to turn to False!!!!

yay yay yay

Time to learn more stuff


as always, comments, suggestions, ideas are most welcome!!!

cheers!

Posted: Tue Jun 01, 2004 12:33 pm
by Peter Müller
Hi!
You said something about fog. Don't see anything on your images (besides the particle effects).
Why I'm asking? I wanted to add fog to my game, but nothing happened :(
Could you tell me, on which of your images I can see the fog and how you made it?

Posted: Tue Jun 01, 2004 12:42 pm
by Tyn
Did you change this flag for all the nodes in your scene? ( That you wanted the fog effect for that is )

Code: Select all

node->setMaterialFlag(video::EMF_FOG_ENABLE, true);

Posted: Tue Jun 01, 2004 1:03 pm
by Peter Müller
Thanks! I just called

Code: Select all

IVideoDriver::setFog(...)

Posted: Tue Jun 01, 2004 1:06 pm
by Peter Müller
Is it possible to call the setMaterialFlag for all Nodes at one time (also for models, which were not created jet)?

Posted: Tue Jun 01, 2004 1:14 pm
by Tyn
I am almost certain that you can't call it for all the scene nodes within Irrlicht. I also don't think it is necessary, I think a much better way would be to allow more things to be passed to child nodes than just rotation and position. If things like fog were passed on then it would make life much easier on the whole as you could construct the whole world through a screen graph inheriting from a dummy scene node. It would allow for you to set these things globally to all ( for example ) the character nodes in the scene that inherit from a dummy scene node. This would allow for the creation of node groups inside the screen graph.

A simple flag would be best. Here's how I think it should work:

node->setMaterialFlag(video::EMF_FOG_ENABLE, true, true);

The second bool stating if the flag should be passed onto the children of this node. If this was implemented into all the material flags then it would make the whole material system much better IMO.

Posted: Tue Jun 01, 2004 1:46 pm
by afecelis
@Peter:

fog is there!!! he he he e,
It's just that these are the settings at which it worked the best. Fog parameters are very sensitive, if you change it a bit, bam! the level is full of fog.

The fog I used is that orange tint you see in the shadows. I used it to complement the reddish look of my levelCheck the shots:

1. No fog:
http://www.theshower.nl/cgi-bin/genesis ... s/fog1.jpg

2. My fog:
http://www.theshower.nl/cgi-bin/genesis ... s/fog2.jpg

3. Ultra fog!
http://www.theshower.nl/cgi-bin/genesis ... s/fog3.jpg

here's the code:

Code: Select all

node->setMaterialFlag(EMF_FOG_ENABLE, true); //enables fog
	driver->setFog(SColor(0,125,125,0),true, 0,4000); //fog color-final values= amount of fog, distance
	

Posted: Tue Jun 01, 2004 4:27 pm
by Peter Müller
Ah, now I can see it!

Posted: Tue Jun 01, 2004 6:29 pm
by Unarekin
:cry:
My poor little modem!
Lookin' good, though 8)

Posted: Tue Jun 01, 2004 6:35 pm
by Peter Müller
Unarekin wrote::cry:
My poor little modem!
Lookin' good, though 8)
dito. Please post only the links to your images :D

Posted: Tue Jun 01, 2004 7:50 pm
by Tyn
Or at least scale them down from full size, large pictures screw with PHPBB forums that haven't got the wide post fix.

Posted: Tue Jun 01, 2004 11:25 pm
by afecelis
oops!

Sorry guys. I'll fix it ASAP.


thnx for the comment.