Updating Old Apps? WZCK, Pie Slicer, et al.
- Stratadrake
- Trained
- Posts: 197
- Joined: 07 Sep 2008, 09:43
- Location: Pacific NW
- Contact:
Re: Updating Old Apps? WZCK, Pie Slicer, et al.
I still have to get triangle-culling functioning properly. I would also like to add trianglestrip functionality to it at some point but that is going to be ... tricky. (Yes, I know the PIE 2 format uses trianglefans and I see the PIE 3 format only allows triangles, but that conversion can be done silently during the save routine).
Guess it's also time to reveal two of Pie Slicer's dirty little secrets: You probably figured out that Pie Slicer expressed coordinates as divided by ten (just to make the numbers feel less massive), but it also inverted the X and Z coordinates during file load (in other words, rotates the model by 180°). Both of those little snarls are getting the axe.
Guess it's also time to reveal two of Pie Slicer's dirty little secrets: You probably figured out that Pie Slicer expressed coordinates as divided by ten (just to make the numbers feel less massive), but it also inverted the X and Z coordinates during file load (in other words, rotates the model by 180°). Both of those little snarls are getting the axe.
Re: Updating Old Apps? WZCK, Pie Slicer, et al.
Out of curiosity, why does it need to do triangle culling?Stratadrake wrote:I still have to get triangle-culling functioning properly.
- Stratadrake
- Trained
- Posts: 197
- Joined: 07 Sep 2008, 09:43
- Location: Pacific NW
- Contact:
Re: Updating Old Apps? WZCK, Pie Slicer, et al.
Because everything looks better with backface-culling. Even wireframe views rendered using manual transformations and GDI calls (because that part still is not DirectX-integrated yet).
Re: Updating Old Apps? WZCK, Pie Slicer, et al.
Interesting.Stratadrake wrote:Even wireframe views rendered using manual transformations and GDI calls
- Stratadrake
- Trained
- Posts: 197
- Joined: 07 Sep 2008, 09:43
- Location: Pacific NW
- Contact:
Re: Updating Old Apps? WZCK, Pie Slicer, et al.
I'm also working on a lighter color scheme for Pie Slicer, like this:
(And notice the backface culling.)
I might have to finish the DirectX integration sooner than planned because once I got the cull-face calculations working properly, suddenly my rendering rate took a nosedive. I'm barely getting 5fps out of that.
(Either that, or I need to take out the Debug.Print lines that are getting called nearly a hundred times per refresh )
But it STILL won't stop me from seeking optimizations and caching data between calls to save calculations. One of them: Polygon normal vectors (calculating which requires a cross product, one per triangle) remain the same unless the geometry changes, so if I can cache that, it reduces the number-crunching by half just to evaluate its cullface status.
Once I get all the DirectX rendering online again I can probably ditch the GDI calls and migrate everything over, but ... that is a long road.
(And notice the backface culling.)
I might have to finish the DirectX integration sooner than planned because once I got the cull-face calculations working properly, suddenly my rendering rate took a nosedive. I'm barely getting 5fps out of that.
(Either that, or I need to take out the Debug.Print lines that are getting called nearly a hundred times per refresh )
But it STILL won't stop me from seeking optimizations and caching data between calls to save calculations. One of them: Polygon normal vectors (calculating which requires a cross product, one per triangle) remain the same unless the geometry changes, so if I can cache that, it reduces the number-crunching by half just to evaluate its cullface status.
Once I get all the DirectX rendering online again I can probably ditch the GDI calls and migrate everything over, but ... that is a long road.
Re: Updating Old Apps? WZCK, Pie Slicer, et al.
Ouch, sounds like there's funny business going on. The models are ridiculously low poly, I'd expect high fps even doing things in the most brute force way possible.Stratadrake wrote:I might have to finish the DirectX integration sooner than planned because once I got the cull-face calculations working properly, suddenly my rendering rate took a nosedive. I'm barely getting 5fps out of that.
Re: Updating Old Apps? WZCK, Pie Slicer, et al.
Problem is, you're not just rendering it, you're also editing and selecting the geometry and that's probably what takes up all the cpu resources.
That said, 5fps is too low...
That said, 5fps is too low...
-insert deep philosophical statement here-
Re: Updating Old Apps? WZCK, Pie Slicer, et al.
Having seen how many things are done the brute force way in Wz I have a good appreciation for the capabilities of modern processors.Jorzi wrote:Problem is, you're not just rendering it, you're also editing and selecting the geometry and that's probably what takes up all the cpu resources.
That being said, I haven't used vb nor GDI enough to know how well they perform.
- Stratadrake
- Trained
- Posts: 197
- Joined: 07 Sep 2008, 09:43
- Location: Pacific NW
- Contact:
Re: Updating Old Apps? WZCK, Pie Slicer, et al.
^ AhemStratadrake wrote:(Either that, or I need to take out the Debug.Print lines that are getting called nearly a hundred times per refresh )
At any rate, VB.Net actually has about the same performance as C# because they both use the same runtime library, and GDI+ probably has about the same performance as low-level GDI. Managed DirectX is slightly slower than native DirectX calls in non-Net C, but still better than the same calls in C# and should be more than sufficient for Pie Slicer's purposes.
But it looks like I'll have to do major refactoring to Pie Slicer's internal data structures before I can even hope to integrate DirectX full-time. GDI+ will do nicely until then.
Re: Updating Old Apps? WZCK, Pie Slicer, et al.
Stratadrake, what happened with your great work here?
- Stratadrake
- Trained
- Posts: 197
- Joined: 07 Sep 2008, 09:43
- Location: Pacific NW
- Contact:
Re: Updating Old Apps? WZCK, Pie Slicer, et al.
I'm not giving up on either of them, but the next thing I want to do with Pie Slicer requires some fairly intensive work ... and it's sunny summer weather out there and all....
-
- Regular
- Posts: 678
- Joined: 29 Jul 2009, 18:01
Re: Updating Old Apps? WZCK, Pie Slicer, et al.
Ah summer time.. when most games lose at least half of their players. At least while the weather is nice and vacations run rampant.
- Stratadrake
- Trained
- Posts: 197
- Joined: 07 Sep 2008, 09:43
- Location: Pacific NW
- Contact:
Re: Updating Old Apps? WZCK, Pie Slicer, et al.
Plus, August is County Fair week so I need to spend time matting photos/art for exhibition. Not much produced in the latter department this year, though....
Re: Updating Old Apps? WZCK, Pie Slicer, et al.
100% True..Stratadrake wrote:
Modding Warzone was certainly some fun memories. But that's another topic....
I spend hours and hours on LOD and when I read all the feedback about the mod now...WOW just WOW..
It itches I have to say... to get back on it again..
Who knowns?
Greetz
Xperia (formerly known as RSgod)
Re: Updating Old Apps? WZCK, Pie Slicer, et al.
When will these be done?
They look great!
They look great!
"My IRC en multiplay naam is Andrie"
Groete Andrie
Groete Andrie