123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|419|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> On Topic -> Projection matrixes, and stuff...

Sun, 30 Oct 2011, 09:19
Afr0
I'm trying to figure out how to render Sims. And so far I'm able to render static meshes (although I've only tested with heads so far), but the problem is that I'm only able to render them sideways!
I can't for the life of me figure out how to configure the world matrix such that the mesh is rendered upright!

Here's my current code (which is based around a sample-project showing how to use XNA with Windows Forms):



Also... if anyone has any idea why the texture isn't showing up, even though I'm calling EnableDefaultLighting(), please do tell!

Here's an image of the rendering in action (though it is hard to tell that it is rendered correctly without seeing it swivel around its y-axis);



-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Tue, 01 Nov 2011, 06:50
Afr0
Ok so I looked over the code again and realized I had made a mistake:



I changed it to:



Then I added three lines in the main drawing loop:



The texture still isn't showing up though! Please help!

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Tue, 08 Nov 2011, 05:47
Afr0


Getting there!
I think the remaining bits are a combination of XNA not liking *.jpg textures and me not having any clue what to do with the blenddata in the meshes.

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Mon, 14 Nov 2011, 07:04
Afr0
In a desperate attempt to understand what I'm doing, can someone please explain wtf this function does (aside from renormalizing the target's normal)?



-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Tue, 15 Nov 2011, 13:54
Afr0


Progress - heads can now be loaded and displayed fully textured.

Turns out I was using the ThumbnailID to load the textures, giving me the thumbnail as opposed to the actual texture.

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Tue, 15 Nov 2011, 13:56
Jayenkai
Did you figure out what the function did?
Tue, 15 Nov 2011, 14:53
Afr0
Unfortunately, no.
It's only important for rendering body meshes, and even with the function the body meshes are still deformed.
As I wrote on the frontpage chat last night, I've put body rendering on the backburner to protect myself from ending up in a mental asylum.

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!