Home Tutorials Download Beta Store Forum Documentation KnowledgeBase Wiki Blog

ShiVa3D

Return to Wish list

manual LOD

You need some features? ask it to us here!

manual LOD

Postby broozar » 21 Apr 2009, 21:03

maybe this is already possible and i overlooked it -

LOD currently relies on an automated procedure to reduce polys. this may be user friedly, but most of the time, it is insufficient. i have plants that have 4 LOD steps from 1200 tris to an alpha mapped quad. no algorithm in the world (except for dynamic impostors, maybe) can reduce the whole tree to an alpha mapped quad automatically. imagine a big asteroid field, same problem. the asts far away would waste thousands of polys, because the automatic algorithm would render more than a quad.

i suggest to redesign the LOD table. automatic may stay the standard, but i'd love to drag and drop any of my models from the "models" folder right into the LOD table row (0 to 3)where i'd like to have em.

thanks in advance
CM ShiVa Technologies SAS
User avatar
broozar
Platinum Boarder
Platinum Boarder
 
Posts: 3568
Location: Berlin - Germany

Re:manual LOD

Postby philip » 21 Apr 2009, 21:30

I totaly agree with you (again) Broozar :)

but there is an additionnal information for your thinking about LOD.

the native LOD of ShiVa is a re-computed vertex buffer, so it doesn't cost any additional data in the GPU/CPU memory.
we don't duplicate the mesh.

so if you want to use your own mesh, you will consume the GPU/CPU memory.

this is quite important information when you search for performance.

on more information is: you can do your trick (change your model from a complexe shape to a quad) by script during the activation/desactivation or something like that.

but we work on the possibility to add his own mesh in the editor (not for tomorrow).
philip
Platinum Boarder
Platinum Boarder
 
Posts: 619

Re:manual LOD

Postby broozar » 21 Apr 2009, 21:43

ok, i couldn't know that. but that explains why i couldn't find any additional LOD models in the /models folder that i could exchange somehow :)

i'll try it with the manual trick then.

thanks for the quick reply!
CM ShiVa Technologies SAS
User avatar
broozar
Platinum Boarder
Platinum Boarder
 
Posts: 3568
Location: Berlin - Germany

Re:manual LOD

Postby makkar » 22 Apr 2009, 01:28

broozar,

Would you mind sharing your implementation of manual LOD when you are done?

At least a more detailed concept would be valuable.

Regards,

makkar
User avatar
makkar
Platinum Boarder
Platinum Boarder
 
Posts: 1521

Re:manual LOD

Postby broozar » 23 Apr 2009, 10:51

uh, i didn't imagine that coding this would be such a deal, it's doable in 2 lines. i will record a video tut if you like.
CM ShiVa Technologies SAS
User avatar
broozar
Platinum Boarder
Platinum Boarder
 
Posts: 3568
Location: Berlin - Germany

Re:manual LOD

Postby broozar » 23 Apr 2009, 11:37

ok here it is. if someone likes this video, maybe you could add it to the tutorial section, as i am not going to host it for long on my server.
as you may hear, i'm not a native speaker, so pardon my ahm.s and well.s and my pronounciation :lol:


http://www.caffier.net/download/LOD_shiVA.avi
CM ShiVa Technologies SAS
User avatar
broozar
Platinum Boarder
Platinum Boarder
 
Posts: 3568
Location: Berlin - Germany

Re:manual LOD

Postby makkar » 27 Apr 2009, 08:03

Hi broozar,

I am really grateful for your tutorial, it's a blockbuster! I watched it four times already. :laugh:

( Have you sensed an increase in your karma?).

You made an elegant and simple solution, and a well done, comprehensible tutorial. I thought there would be a bunch of distance measurements and raycastings.

So, thanks again and I recommend this video to be included in the Tutorials section!

Your generousness made me enhance and publish my little FPS display "system" in the Code Snippets...
User avatar
makkar
Platinum Boarder
Platinum Boarder
 
Posts: 1521

Re:manual LOD

Postby broozar » 27 Apr 2009, 22:03

:lol: nothing else to say
CM ShiVa Technologies SAS
User avatar
broozar
Platinum Boarder
Platinum Boarder
 
Posts: 3568
Location: Berlin - Germany


Return to Wish list

cron