it should be possible to scale lodNode distances based on camera FOV (patch included)

Bug #1009603 reported by Josh Enes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Panda3D
Fix Released
Wishlist
rdb

Bug Description

This patch adds the ability to scale the distances set on lodNodes per-camera.
This allows for a developer to adjust all LOD distances with one setting for example to have a user-defined LOD config option.
It also allows to push back the LOD distances when the FOV of the camera is changed for example if the game has a sniper scope or binoculars this will allow the developer to avoid having the low-detail models shown even though they are very large on the screen.
The added function is set_lod_scale/setLodScale (and get) on cameras.

Tags: camera lod
Revision history for this message
Josh Enes (joshenes) wrote :
Revision history for this message
Josh Enes (joshenes) wrote :

Is there something I can do to improve this patch to make it more acceptable to be committed? I feel that this is a useful and needed feature for Panda.

Revision history for this message
rdb (rdb) wrote :

Hi! This looks like a useful feature. Thanks, I've committed it.

Changed in panda3d:
assignee: nobody → rdb (rdb)
importance: Undecided → Wishlist
status: New → Fix Committed
rdb (rdb)
Changed in panda3d:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.