OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Light Map Sub


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
d_a_heitbrink (David Heitbrink)
User


Joined: 23 Sep 2013
Posts: 42

PostPosted: Wed Sep 06, 2017 10:04 pm    Post subject:
Light Map Sub
Reply with quote

I have a number of scenes with a large number of old fashioned light maps. These light maps are basically textures that are set with blending and I have a number of issues with these.

I have 100's of these lights in the scene, but only a few a handful should be active in a scene at a time. At worst like 10. Its a really big scene.

So I wrote a cull-callback that would calculate a model view projection matrix for the light, and provide a texture index. This then calls back to a manager that sorts these by the X number of closest lights, and updates a uniform that contains a list of active lights for the current view.

I seem to be having an issue with the issue with my cull call back getting called when the light should be visible. At certain view angles I have lights just disappear. My question is, instead of trying to compile the lights by using a cull callback, would I be better creating my own drawable? and have it just make a callback to a manager handling the uniform with the light references instead of actually drawling anything.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Invisible light points Andreas Ekstrand General 5 Fri Aug 04, 2017 11:12 am View latest post
No new posts Visualizing a light cone in scene suraj General 7 Tue Jan 10, 2017 10:44 am View latest post
No new posts Simulating Light Lobes with Projected... Trajce Nikolov NICK General 3 Thu Aug 11, 2016 9:57 pm View latest post
No new posts Unwanted light source when importing ... osgProjectWorker General 2 Thu Apr 28, 2016 8:23 pm View latest post
No new posts Light/Material flickering João General 2 Mon May 11, 2015 1:05 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP