Skip to main content
gamedev.net
🔒 Locked

Multi Mesh objects

Started by Sixten Jan 31, 2003 at 5:52 PM 9 replies 600+ views
Original Post
Sixten
Sixten
Well im trying to make a grafiks engine in C++ Dx9.. but im having some trubble with Mesh objects.. Well i can load one.. but i cant come up with a good way to load multi meshes and reandering them all at the same time.. any one got any ides or some tutorials where u use muliple mesh objects... And i dont like Microsofts SDK because is just a big mess of codes and hard to see what they really call.. So anyone? Thx
Pipo DeClown
Pipo DeClown
This may sound really n00bish, but the answer is out of my acheing head right now...

THe pointer to the device is always pointing to the device right?
If you change anything in the device, the pointer is still up-to-date right?

Argh...

.lick
Sixten
Sixten
Well... If i want the meshes to move like a car or a shit.. the i want to be abel to set the Matrix for each mesh.. and with this code.. i cant see how i do that because dont u do that right before u render the mesh.. so first u set the matrix for the first mesh.. and render it and then the other...?? So how do i do that.. render one mesh at a time???
Sixten
Sixten
Hmm well im trying to maka a grafiks enegine.. and i want the user to be abel to use it allmost with out using any DX8 calls... i call the mesh creation like this

g_pMeshs->CreateMesh(g_pDevice, "tiger.x");

Well if i dont do this

LPDIRECT3DDEVICE9 g_pDevice;

i get an error saying

error C2065: ''g_pDevice'' : undeclared identifier
.. how can i get around this with out using the LPDIRECT3DEVICE9 call.. anyone got any good tips for me???

Thx
Sixten
Sixten
OK thx.. now it kind of works.. well how dose the g_pD3D-GetDevice work?? Cant find it in Dx9 refrences so u have had to created it your self.. im kind of a newbe at Dx9.. but i know the 5 tutorials that Microsoft gave out the other samples in there suck... because its really hard to see whats realyl happening.. just to much code... thats at least what i think.. if i spent a few houres looking at thier code i could probobly figure it out but... i just get sooo tired...!
LOL

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.