VeTaL Posted March 6, 2010 Share Posted March 6, 2010 Is it possible to use sprite as one of the last LODs automatically? For example, i have model.gmf(500 polys), modelLOD1.gmf(100 polys), modelLOD2.gmf(40 polys) and a sprite modelLOD3.gmf(1 polygon) (?) Not a concretic proposal, just this idea strikes my head PS: maybe this is already supported as i see something like this in forest demo, when flying up and looking down on the trees. Quote Working on LeaFAQ Link to comment Share on other sites More sharing options...
omid3098 Posted March 6, 2010 Share Posted March 6, 2010 I think its already supported. from 2.12 vegetation in island demo were placed one by one (as other objects) and they used billboards as their last LOD. Quote Omid Saadat OD Arts Blog AMD Phenom II X4 940 - Geforce 8800GTS - 4GB RAM - XP x86 AMD 6000+ - Geforce 9800 GT - 2GB RAM - XP x86 (Home pc) Intel Core i7 - Geforce 310M - 4GB Ram - Win7 x64 (Laptop) Link to comment Share on other sites More sharing options...
Josh Posted March 6, 2010 Share Posted March 6, 2010 Billboards are already automatically generated for vegetation layers. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
omid3098 Posted March 6, 2010 Share Posted March 6, 2010 I think he was not referring to vegetation only.. Quote Omid Saadat OD Arts Blog AMD Phenom II X4 940 - Geforce 8800GTS - 4GB RAM - XP x86 AMD 6000+ - Geforce 9800 GT - 2GB RAM - XP x86 (Home pc) Intel Core i7 - Geforce 310M - 4GB Ram - Win7 x64 (Laptop) Link to comment Share on other sites More sharing options...
VeTaL Posted March 6, 2010 Author Share Posted March 6, 2010 Yep, i mean just usual using of sprites instead of models. Maybe even automatically, like trees. Quote Working on LeaFAQ Link to comment Share on other sites More sharing options...
VeTaL Posted March 6, 2010 Author Share Posted March 6, 2010 Well, maybe i can create empty model with LUA script, that would load sprite? BTW, maybe its little offtopic, but how can i use billboards? For example, i want sprite on the wall and so on. I found only coronas, but they are "Coronas are simple entities, like billboards, that are always facing the player." Is there a simple sprite, or it would be nice to have Faced parameter, wich would select if corona facing the player or not. Quote Working on LeaFAQ Link to comment Share on other sites More sharing options...
omid3098 Posted March 6, 2010 Share Posted March 6, 2010 if you want to get effects like sprites in 3d max, you should use decals on models your models. you can check gun decals in previous versions of LE. Quote Omid Saadat OD Arts Blog AMD Phenom II X4 940 - Geforce 8800GTS - 4GB RAM - XP x86 AMD 6000+ - Geforce 9800 GT - 2GB RAM - XP x86 (Home pc) Intel Core i7 - Geforce 310M - 4GB Ram - Win7 x64 (Laptop) Link to comment Share on other sites More sharing options...
Gard Posted March 6, 2010 Share Posted March 6, 2010 or you can create in file Lua, a function to make this: Verify the camera to model distance, and Free Entity model, and load a sprite with texture of model, like a billboard...but improvised.. Quote Link to comment Share on other sites More sharing options...
VeTaL Posted March 6, 2010 Author Share Posted March 6, 2010 http://leadwerks.com/wiki/index.php?title=Meshes#CreateDecal Ah, here it is Quote Working on LeaFAQ Link to comment Share on other sites More sharing options...
Josh Posted March 6, 2010 Share Posted March 6, 2010 This is not supported. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
VeTaL Posted March 6, 2010 Author Share Posted March 6, 2010 Well, maybe i can create empty model with LUA script, that would load sprite? I dont think that its a good idea to cycle all entities in a loop and see if its time for some of them to change at billboard... Maybe in another thread... Then, maybe its possible to catch event, when LOD is changed? Quote Working on LeaFAQ Link to comment Share on other sites More sharing options...
VeTaL Posted March 11, 2010 Author Share Posted March 11, 2010 up Is it possible to catch event, when LOD is changed? Quote Working on LeaFAQ Link to comment Share on other sites More sharing options...
franck22000 Posted March 12, 2010 Share Posted March 12, 2010 Hello Vetal, i think you can write a function that detect change of LOD with this command: http://leadwerks.com/wiki/index.php?title=Models#GetModelDetail Quote You guys are going to be the death of me. Josh Link to comment Share on other sites More sharing options...
VeTaL Posted March 12, 2010 Author Share Posted March 12, 2010 Thanks, looking like its what i'm looking for. Quote Working on LeaFAQ Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.