setting "state-cache 0" causes models to load as many geoms with a small amount of geometry each

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

Bug Description

The state-cache setting causes EGG files to not load properly.
Specifically the problem occurs during the conversion to BAM.

You can see with pstats that when "state-cache 0" is set, the EGG file provided in the repro incorrectly loads as 279 geoms.
With the default setting "state-cache 1", it loads as only 1 geom.

related thread: http://www.panda3d.org/forums/viewtopic.php?t=15449

Tags: bam cache egg state
Revision history for this message
Josh Enes (joshenes) wrote :
Revision history for this message
rdb (rdb) wrote :

I know this is probably too late to be useful for you, but I just checked in a fix. As it turns out, RenderState::compare_to compared the render attributes by pointer, which only works if the state cache is enabled. I just changed it to actually invoke compare_to on the RenderAttrib. Picked up for the 1.8 branch.

Changed in panda3d:
assignee: nobody → rdb (rdb)
milestone: none → 1.8.2
status: New → Fix Committed
rdb (rdb)
Changed in panda3d:
milestone: 1.8.2 → 1.9.0
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.