ScapeMakeLoader & CLODSceneNode
ScapeMakeLoader & CLODSceneNode
Hi
Its the first release of ScapeMakeLoeader.
Really, its not load the .zip exported from scapemaker, but it loads some files generated with scapemaker, like terrain, skybox, water, and objects.
More information on top of ScapeMakeLoader.h/cpp
In same file, you will found CLODSceneNode, a mesh scenenode that can handle various meshes as LODS. You pass the mesh and inform the maxviewdistance this LOD can be seen. The node automatically switches trought LODs, fading betwheen then.
If you have questions, suggestions, comments or ideas on how to improve this or if yourself make improvements or changes, please report it here or by mail or MSN to paulo_cmv@hotmail.com. This way i can commit improvements to original version and redistribute then.
Download here: http://br.geocities.com/paulo_cmv/CLODSceneNode.zip
I uploaded it to gdlib, here:
http://www.gdlib.net/index.php?name=Dow ... ails&id=94
Its the first release of ScapeMakeLoeader.
Really, its not load the .zip exported from scapemaker, but it loads some files generated with scapemaker, like terrain, skybox, water, and objects.
More information on top of ScapeMakeLoader.h/cpp
In same file, you will found CLODSceneNode, a mesh scenenode that can handle various meshes as LODS. You pass the mesh and inform the maxviewdistance this LOD can be seen. The node automatically switches trought LODs, fading betwheen then.
If you have questions, suggestions, comments or ideas on how to improve this or if yourself make improvements or changes, please report it here or by mail or MSN to paulo_cmv@hotmail.com. This way i can commit improvements to original version and redistribute then.
Download here: http://br.geocities.com/paulo_cmv/CLODSceneNode.zip
I uploaded it to gdlib, here:
http://www.gdlib.net/index.php?name=Dow ... ails&id=94
Last edited by ProSoft on Sun Jun 04, 2006 1:00 pm, edited 1 time in total.
It looks interesting, but the download link leads to a page that looks like a "404 File not found" but is in a language I do not understand.
Try submitting it at gdlib.net if you need better hosting.Yahoo! GeoCities wrote:Infelizmente, esta página não está disponível no momento. Por favor, tente novamente ou faça uma busca no Yahoo! GeoCities por outras páginas que lhe interessem.
Impressive! love the fades between different levels of detail, and it runs pretty fast.. nice work!
you may want this javascript to get past geocities hotlinking policy
you may want this javascript to get past geocities hotlinking policy
Klaster: Try it again. I have normal acess to this file here. Sure its not a broken link.
Bitplane: I looking for some way to optimize the setVertexColors() procedure... I think it may be the bottleneck now. Ill try to put a
if ( color != newcolor )
at starting of this proc, but i guess it not will produce to much speed gain.
Bitplane: I looking for some way to optimize the setVertexColors() procedure... I think it may be the bottleneck now. Ill try to put a
if ( color != newcolor )
at starting of this proc, but i guess it not will produce to much speed gain.
I can't download it too. Try to make page and link from it, now looks that direct linkink is blocked.
My project in forum- ATMOsphere - new dynamic sky dome for Irrlicht
Can't download either .... hate such things,
sound cool
sound cool
Compete or join in irrlichts monthly screenshot competition!
Blog/site: http://rex.4vandorp.eu
Company: http://www.islandworks.eu/, InCourse
Twitter: @strong99
Blog/site: http://rex.4vandorp.eu
Company: http://www.islandworks.eu/, InCourse
Twitter: @strong99
Geocities wont allow hotlinking. Those who couldnt download it, just go to
http://br.share.geocities.com/paulo_cmv/ and then click the link of the zip. (As you click from pualo_cmv site, link will work).
http://br.share.geocities.com/paulo_cmv/ and then click the link of the zip. (As you click from pualo_cmv site, link will work).
In case you dont read the first post again, i have uploaded it to gdlib, here:
http://www.gdlib.net/index.php?name=Dow ... ails&id=94
http://www.gdlib.net/index.php?name=Dow ... ails&id=94
wow, impressive work!
I think that it should not go by unnoticed that the demo contails more than just the CLODSceneNode, I think the quadtree fustrum culling class, and the lensflare scene node are too a nice piece of work. I like these additions verry much.
I wonder, are you going to implement all the features from ScapeMaker? (like the realistic water effect) would love to see more of this.
Gr.
I think that it should not go by unnoticed that the demo contails more than just the CLODSceneNode, I think the quadtree fustrum culling class, and the lensflare scene node are too a nice piece of work. I like these additions verry much.
I wonder, are you going to implement all the features from ScapeMaker? (like the realistic water effect) would love to see more of this.
Gr.
You could try updating the colour less often, ie if a certain number of milisecs have passed, but this isn't a real cure. What you really need is a shader-based material and to pass the transparrency as a parameter, this would be compatible with static hardware index/vertex lists (future irrlicht versions or irrSpintz) which would provide a dramatic increase in performance. This may cause problems on old hardware though.ProSoft wrote: Bitplane: I looking for some way to optimize the setVertexColors() procedure... I think it may be the bottleneck now. Ill try to put a
if ( color != newcolor )
at starting of this proc, but i guess it not will produce to much speed gain.
Things exported by Scapemaker, as i have take a look at scapemaker forum, are proper to scapemaker engine. I trying to simulate some features of scapemaker engine in irrlicht. Ocean are easy to do, coz its only a big plane of water (todo: vertex transparency in a new custom material - see post at http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=13386 ).I wonder, are you going to implement all the features from ScapeMaker? (like the realistic water effect) would love to see more of this.
Other thinks like rivers are most dificult, coz you have only a point in terrain ( the point where river starts ), and must calculate the river travel to ocean, with collision and gravity, and create a mesh from this. Ill try this later.
Before, i will try to implement the skyplane, maybe fog. About sun, scapemaker exports time of day and sun direction. If i can calculate a point in sky, ill put lensflares, anyone can help here?
I tried to compile the loader under Irrlicht 1.2 but i do get type conflicts. Has anybody adapted this? Here is my compile log:
ScapeMakerLoader.cpp:280: warning: passing `irr::f32' for converting 1 of `virtual irr::video::SColor irr::video::IImage::getPixel(irr::s32, irr::s32)'
ScapeMakerLoader.cpp:280: warning: passing `irr::f32' for converting 2 of `virtual irr::video::SColor irr::video::IImage::getPixel(irr::s32, irr::s32)'
SceneReader.cpp:370: error: no matching function for call to `irr::scene::ISceneManager::getSceneNodeFromName(const wchar_t*)'
D:\irrlicht\irrlicht-1.2\include\ISceneManager.h:751: note: candidates are: virtual irr::scene::ISceneNode* irr::scene::ISceneManager::getSceneNodeFromName(const irr::c8*, irr::scene::ISceneNode*)
SceneReader.cpp:433: error: no matching function for call to `irr::scene::ISceneNode::setName(const wchar_t*)'
D:\irrlicht\irrlicht-1.2\include\ISceneNode.h:126: note: candidates are: virtual void irr::scene::ISceneNode::setName(const irr::c8*)
:: === Build finished: 4 errors, 2 warnings ===
ScapeMakerLoader.cpp:280: warning: passing `irr::f32' for converting 1 of `virtual irr::video::SColor irr::video::IImage::getPixel(irr::s32, irr::s32)'
ScapeMakerLoader.cpp:280: warning: passing `irr::f32' for converting 2 of `virtual irr::video::SColor irr::video::IImage::getPixel(irr::s32, irr::s32)'
SceneReader.cpp:370: error: no matching function for call to `irr::scene::ISceneManager::getSceneNodeFromName(const wchar_t*)'
D:\irrlicht\irrlicht-1.2\include\ISceneManager.h:751: note: candidates are: virtual irr::scene::ISceneNode* irr::scene::ISceneManager::getSceneNodeFromName(const irr::c8*, irr::scene::ISceneNode*)
SceneReader.cpp:433: error: no matching function for call to `irr::scene::ISceneNode::setName(const wchar_t*)'
D:\irrlicht\irrlicht-1.2\include\ISceneNode.h:126: note: candidates are: virtual void irr::scene::ISceneNode::setName(const irr::c8*)
:: === Build finished: 4 errors, 2 warnings ===
[quote="ProSoft] About sun, scapemaker exports time of day and sun direction. If i can calculate a point in sky, ill put lensflares, anyone can help here?[/quote]
I write sun scene node, link is in my signature. As i remember in function "saule" calculates sun position (angle from horizont and angle from east or south) by given datetime in julian time.
I write sun scene node, link is in my signature. As i remember in function "saule" calculates sun position (angle from horizont and angle from east or south) by given datetime in julian time.
My project in forum- ATMOsphere - new dynamic sky dome for Irrlicht