Subject:
|
Re: LDD vs LDraw
|
Newsgroups:
|
lugnet.cad
|
Date:
|
Fri, 15 Dec 2006 21:37:11 GMT
|
Viewed:
|
2357 times
|
| |
| |
> You might be surprised about the performance. LDView cheats and
> only sorts the centroids of the transparent triangles, but it does
> do a brute force sort (via qsort()) of all transparent triangles
> every frame (assuming you have that option turned on). I calculate
> the distance squared to all the centroids with the current matrix
> prior to the sort in order to avoid having to calculate that in the
> comparison function. It takes a whole lot of transparent parts in
> the model for the sorting to have a significant impact on performance.
I don't even keep a copy of the vertices in system memory, I upload them
all to the video card and forget about them. It might not be terribly bad to
sort the triangles per frame since usually there aren't that many translucent
pieces but I think my brain can't turn off the optimize as much as possible
part of it after working on video games for so long now. :)
> Hey, that's the opposite of LDView. If you do a "Zoom to Fit" in
> LDView, it STOPS rotating about the model center. (I think I'm
> going to fix that, though.) Just out of curiosity, what does "Zoom
> Extents" do? Does it zoom so that the bounding box of the whole
> model fills most of the window based on the current viewing angle?
> I know it zooms to different levels based on the viewing angle, but
> I don't think any geometry actually makes it to the edge of the window.
Zoom extents first centers the camera target to the center of the model,
then moves the camera position so that the bounding box of all pieces are
completely visible, and one of them is touching the view frustum.
Leonardo
|
|
Message is in Reply To:
| | Re: LDD vs LDraw
|
| (...) You might be surprised about the performance. LDView cheats and only sorts the centroids of the transparent triangles, but it does do a brute force sort (via qsort()) of all transparent triangles every frame (assuming you have that option (...) (18 years ago, 14-Dec-06, to lugnet.cad)
|
33 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|