ATMOsphere

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

you could comment out the RegisterNodeFoRrendering line in the billboard's OnPreRender, and do a forced render inside the skybox (replacement/skydome whatever) scene node's render function
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Pazystamo
Posts: 115
Joined: Sat Dec 03, 2005 5:56 pm
Location: Lithuania
Contact:

Post by Pazystamo »

Thanks for both of you. Now its more clearly for me. Just one part is unclearly, if i render node without RegisterNodeFoRrendering as ESNRP_SKY_BOX how can i be sure that nothing else was rendered before? I think that if i dont set node type it uses AUTO type. So i have somehow make that node user couldnt render anything else before my sky node. Now i use my class which controls all sky nodes (sky,sun,stars). So should i render all nodes from my class manualy and force user to update class before all others nodes (first after beginScene)? Does it work correctly if user uses other nodes with ESNRP_SKY_BOX?
My project in forum- ATMOsphere - new dynamic sky dome for Irrlicht
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

Hi Pazystamo,
Do you have any progress with your project?
I suppose you manipulate vertex colors, for sky dome and diffuse color for models right? If this is true is very interested case when on the terrain exist some building /castle/. It's necessary to prevent "lighting" inside of building.
ImageImage
Site development -Rock and metal online
--- etcaptor.com ------freenetlife.com
needforhint
Posts: 322
Joined: Tue Aug 30, 2005 10:34 am
Location: slovakia

Post by needforhint »

a solution to inside light syndrom, if you want to have loaded both, outside and inside in one scene, could be setting materials of the inside with another flag...whole insisde should be separate mesh, placed well and having set material flag to a material that doesn't respond to the light present outside... the material type of the inside mesh will simply respond to the light present inside, absolutely different then outside....

....so I supose the sky dome should have a parameter core3df(), which is ment to carry a direction, which will be mapped into a shader creating per pixel directional light :wink: and that shaded material will care all meshes on the outside... this material will need a flag, like EMT_SKY.... I am creating a flag for a per pixel directional light (with specular color too and mapping normal map as well)... the insides perhaps are gonna be fixed function clasic lights, unless you want a multiple light shaders, and dont know what will be the performance then...
for know the light I have done is target 2.0 pixel shader soo, only better graph cards...it has theese parameters:
1-colorRGBA ambient
2-colorRGBA diffuse
3-colorRGBA specular
4-vector3df direction
5-float specular_strength
it maps both texture layers
so you can for example animate the diffuse color with a dumy node to achieve nice "redding" sunset or sad white morning .....
if you got here,..I am thinking, should I write my thoughts into a tutorial on shadering specificly for irrlicht?
what is this thing...
Pazystamo
Posts: 115
Joined: Sat Dec 03, 2005 5:56 pm
Location: Lithuania
Contact:

Post by Pazystamo »

etcaptor wrote:Hi Pazystamo,
Do you have any progress with your project?
I suppose you manipulate vertex colors, for sky dome and diffuse color for models right? If this is true is very interested case when on the terrain exist some building /castle/. It's necessary to prevent "lighting" inside of building.
Hi, sorry, i havent time to code for a month :( But maybe next weak i have to show intermediate work so i have to start code again :) (left ~45 days to finish). I manipulate with sky cone UV (slides on sky color texture) and now for lighting i change ambient color. But i recomend slow dynamic light (sun) for correct inside lighting (shadow inside or inside light). I'll realese unfinished code when i clean up it.

P.S. from my site statistic i see that people cares my demo (about 50 downloads this month) so i'll try not to disappoint you.
My project in forum- ATMOsphere - new dynamic sky dome for Irrlicht
Pazystamo
Posts: 115
Joined: Sat Dec 03, 2005 5:56 pm
Location: Lithuania
Contact:

Post by Pazystamo »

UPDATES!
Added sun movement interpolation (in demo every 30 virtual minutes).
Copy billboad code and disable Zbufer,made ESNRP_SKY_BOX and use updateAbsolutePosition. So now sun dont jumping on camera move.
Some fixes, so now works a little faster ;)

New demo http://www.pazystamo.projektas.lt
move with arrows, rote with mouse. press spacebar to activate cursor (for speed adjustment), press again for camera move.

Maybe on weekend i will play with sky textures...
Good night! :)
My project in forum- ATMOsphere - new dynamic sky dome for Irrlicht
krama757
Posts: 451
Joined: Sun Nov 06, 2005 12:07 am

Post by krama757 »

Wow, I like it a lot! Ive been working with a sky box with the drynamic sky...using Magic 2D. But this is a very promising project also!
Pazystamo
Posts: 115
Joined: Sat Dec 03, 2005 5:56 pm
Location: Lithuania
Contact:

Post by Pazystamo »

HI,
I have some good and some bad news ;). Good is that i released source and demo. Bad - project is unfinished and almost without coments, also untidy code :oops: . I took academic holiday and don't have time and desire. But i plan to finish it next year, after my holiday. Now it is only with sun, no moon, but you can add moon formulas from here.
Also you can add light to sun position.
Download from my site http://www.pazystamo.projektas.lt
My project in forum- ATMOsphere - new dynamic sky dome for Irrlicht
dawasw
Posts: 357
Joined: Tue Aug 10, 2004 4:39 pm
Location: Poland

Post by dawasw »

Excellent work. Very nice code (even untidy its actually quite good) - I mean here the implementation.

Thank you very very much :D
Pazystamo
Posts: 115
Joined: Sat Dec 03, 2005 5:56 pm
Location: Lithuania
Contact:

Post by Pazystamo »

Where do you find nice code? :) Thanks for comments!
My project in forum- ATMOsphere - new dynamic sky dome for Irrlicht
andrei25ni
Posts: 326
Joined: Wed Dec 14, 2005 10:08 pm

Post by andrei25ni »

Your project it's excellent. Good work.
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

Thanks for that code. I believe that now many users can give you any ideas or code issues in addition.
ImageImage
Site development -Rock and metal online
--- etcaptor.com ------freenetlife.com
juliusctw
Posts: 392
Joined: Fri Apr 21, 2006 6:56 am
Contact:

good job

Post by juliusctw »

hey Pazystamo

why is your sourecode in executable? i'm running linux so i would have to recompile your source code to check it out, how can i see the source?
stodge
Posts: 216
Joined: Fri Dec 05, 2003 5:57 pm

Post by stodge »

You may be able to extract it using Wine.
Pazystamo
Posts: 115
Joined: Sat Dec 03, 2005 5:56 pm
Location: Lithuania
Contact:

Post by Pazystamo »

Juliusctw, now i put .TAR compresed file. I hope that now you can extract it on linux. I didn't expect that someone still looks this my old code ;)
My project in forum- ATMOsphere - new dynamic sky dome for Irrlicht
Post Reply