ScapeMakeLoader & CLODSceneNode

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
ProSoft
Posts: 59
Joined: Thu Sep 08, 2005 10:55 am
Location: Brasil

ScapeMakeLoader & CLODSceneNode

Post by ProSoft »

Hi

Image

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.
Klasker
Posts: 230
Joined: Thu May 20, 2004 8:53 am
Contact:

Post by Klasker »

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.
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.
Try submitting it at gdlib.net if you need better hosting.
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

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
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
ProSoft
Posts: 59
Joined: Thu Sep 08, 2005 10:55 am
Location: Brasil

Post by ProSoft »

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.
Pazystamo
Posts: 115
Joined: Sat Dec 03, 2005 5:56 pm
Location: Lithuania
Contact:

Post by Pazystamo »

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
Strong99
Admin
Posts: 687
Joined: Fri Mar 31, 2006 7:06 pm
Location: Netherlands
Contact:

Post by Strong99 »

Can't download either .... :( hate such things,

sound cool :shock: :D
Warchief
Posts: 204
Joined: Tue Nov 22, 2005 10:58 am

Post by Warchief »

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).
ProSoft
Posts: 59
Joined: Thu Sep 08, 2005 10:55 am
Location: Brasil

Post by ProSoft »

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
Phunk
Posts: 78
Joined: Sun Dec 14, 2003 8:18 pm
Location: The Netherlands

Post by Phunk »

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.
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

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.
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.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
ProSoft
Posts: 59
Joined: Thu Sep 08, 2005 10:55 am
Location: Brasil

Post by ProSoft »

I wonder, are you going to implement all the features from ScapeMaker? (like the realistic water effect) would love to see more of this.
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 ).
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?
noreg
Posts: 158
Joined: Fri Jun 23, 2006 6:01 pm
Location: continental europe

Post by noreg »

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 ===
Pazystamo
Posts: 115
Joined: Sat Dec 03, 2005 5:56 pm
Location: Lithuania
Contact:

Post by Pazystamo »

[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.
My project in forum- ATMOsphere - new dynamic sky dome for Irrlicht
noreg
Posts: 158
Joined: Fri Jun 23, 2006 6:01 pm
Location: continental europe

Post by noreg »

buon ma non molto utile
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

Is it v1.4 compatible?
Post Reply