Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


ForbiddenX

Member Since 30 Jan 2011
Offline Last Active Sep 30 2014 08:55 PM

Posts I've Made

In Topic: Windows 8 Game Development

19 July 2013 - 03:36 PM

Thanks! I'll definitely take a look at marmalade as well! The perks are very interesting ;)


In Topic: Windows 8 Game Development

18 July 2013 - 11:16 PM

Awesome, thanks for the explanation. 

 

I may choose to go with MonoGame as it seems like it would give me better practice and a better understanding of making my own engine. I don't mind spending the time trying to write my own since it'll be good practice!

 

Are there any suggestions between other than MonoGame or Unity? 


In Topic: [Direct3D] Cube Mirror

28 March 2011 - 05:44 PM

Pretty much what I want it to do is to reflect the objects around it but I'm not sure why it's not.

I'm also trying to add textures and I don't really know why it's blowing up on me

g_pDevice->SetStreamSource(0, v_buffer, 0, sizeof(CUSTOMVERTEX));
	g_pDevice->SetFVF(CUSTOMFVF);
	g_pDevice->SetIndices(i_buffer);
	//endrender
	g_pDevice->SetMaterial(&teapot.material);
	g_pDevice->SetTexture(0, square.texture);
	g_pDevice->DrawIndexedPrimitive(D3DPT_TRIANGLELIST, 0, 0, 24, 0, 12);

This is what I'm using to render the cube but it just appears to be white.

This is what I'm doing to create the material:
D3DCOLORVALUE white= { 1, 1, 1, 0 };
	D3DCOLORVALUE black = { 0, 0, 0, 0 };
	teapot.material.Diffuse = white;
	teapot.material.Ambient = white;
	teapot.material.Specular = white;
	teapot.material.Emissive = black;
	teapot.material.Power = 2.0f;

As for the mirror the examples ive been was just 1 face. So like a normal mirror, but since I'm rendering a cube mirror all with different objects on each side will I need to have 6 different reflections and will I have to treat each face as an individual face. So like I can't just set the whole cube to be a mirror I'd have to make each face one.

In Topic: Getting started with DirectX9 (C++ Shell)

12 February 2011 - 02:22 AM

Thanks for the replies guys and sorry for the really late reply I've been crunching away at the next step of my project. I did exactly what you guys told me and I wrapped the functions into method calls and got full marks!

Thanks a lot

PARTNERS