Jump to content

  • Log In with Google      Sign In   
  • Create Account

ryan20fun

Member Since 06 Oct 2010
Offline Last Active Dec 19 2014 09:49 PM

#4817398 Doubt in VS 2008

Posted by ryan20fun on 29 May 2011 - 11:57 PM

I tried running a basic C++ windows program. When it was Win32, it was not building giving some error. But when I changed it to x86, it was built.


thats actually kinda funny(well, to me)
you tried Build the 32Bit version and it did not Compile, so you chaanged that to thje 32Bit version(again) and it worked :P
:D :) :D


#4817396 Getting started with DirectX

Posted by ryan20fun on 29 May 2011 - 11:54 PM

I am using Visual Studio 2008, windows 7 64-bit.

I downloaded DirectX SDK August 2007 and installed it.
When I tried to build a tutorial program, it said "can not open dx3d10d.lib"
Please help me why this error is coming. The file is present in the required folder of VS.



why are you using a SDK that is 4 Years Old ?


#4816389 DirectX 9 switching window state

Posted by ryan20fun on 27 May 2011 - 05:33 AM

Try This I have not tried it yet, but i will soon.


#4815582 DirectX 9 switching window state

Posted by ryan20fun on 25 May 2011 - 07:11 AM

use the code i pasted Here and also read through the replys (theres one that tells you how to get image size without loading it)
let me know if it helps


#4815513 Power of two sprites...?

Posted by ryan20fun on 25 May 2011 - 03:42 AM

here is what i used to load my texture with (non power of two / does not matter)

D3DXIMAGE_INFO d3dxImageInfo;

		D3DXCreateTextureFromFileEx( D3D9Device,
			L"..\\donut.bmp",
			320, // I had to set width manually. D3DPOOL_DEFAULT works for textures but causes problems for D3DXSPRITE.
			384, // I had to set height manually. D3DPOOL_DEFAULT works for textures but causes problems for D3DXSPRITE.
			1,   // Don't create mip-maps when you plan on using D3DXSPRITE. It throws off the pixel math for sprite animation.
			D3DPOOL_DEFAULT,
			D3DFMT_UNKNOWN,
			D3DPOOL_DEFAULT,
			D3DX_DEFAULT,
			D3DX_DEFAULT,
			D3DCOLOR_COLORVALUE(0.0f, 0.0f, 0.0f, 1.0f),
			&d3dxImageInfo,
			NULL,
			&texture );

		// Create our sprite...
		D3DXCreateSprite( D3D9Device, &sprite );

did that help ?


#4815265 DirectX 9 switching window state

Posted by ryan20fun on 24 May 2011 - 01:26 PM

Ughhhhh that sounds so annoying x)

All the images I load are using POOL_DEFAULT which means I'm going to have to add something that keeps track of all images that are loaded and then some way of reloading all images and recreating all the sprites D:

I've been trying the workaround ryan suggested with making it look full screen by changing the screen resolution but can't figure out how to do that in C++
I tried changing my method to do this:


	if (!windowed)
	{
		//setup the device mode
		DEVMODE devmode;
		devmode.dmSize = sizeof(DEVMODE);
		devmode.dmPelsWidth = mGameWindow.GetWidth();
		devmode.dmFields |= DM_PELSWIDTH;
		devmode.dmPelsHeight = mGameWindow.GetHeight();
		devmode.dmFields |= DM_PELSHEIGHT;
		devmode.dmBitsPerPel = 32;
		devmode.dmFields |= DM_BITSPERPEL;

		//position the window to 0, 0
		mGameWindow.SetPosition(0, 0);
		//change screen resolution
		ChangeDisplaySettings(&devmode, 0);
	} else {
		//set screen resolution to initial settings
		ChangeDisplaySettings(&initDev, 0);
		//position window in middle of the screen
		mGameWindow.CenterScreen();
	}


But that doesn't seem to do anything at all, the window moves like I tell it to (0,0 for full screen and back to the middle for windowed) and the border disappears and comes back when windowed like it should but the screen resolution itself doesn't change. Any ideas how to do this? it'll save having to do all the reloading of textures etc.


so, that code imatates fullscreen ?
can you post the code that creates the window ?

what i would do is this (i have my screen set to 1024x768)
set window position to 0,0
and screen width and height to 1024,768
and make it a borderless window (i hade the code to do this but i dont think i have it anymore, but you should only need to set the borderstyle to none)


#4815116 Whats With All The Red Stuff?

Posted by ryan20fun on 24 May 2011 - 07:53 AM

Make it green.


thats actually a good idea, maybe you could do what Serius Sam did when you set blood and gore to Hippi
that is, instead of red smears it is flowers and instead of gibs it is fruits :D.


#4813637 If you could see any movie made into a video game

Posted by ryan20fun on 20 May 2011 - 03:25 PM


The Book of Eli...

Spoiler


I'd like to see Bioshock the movie get released.


id Love to see a Crysis Movie, but so far there is no date as to when it will be published.
and Hopefully it is at least as good as the games it depicts.


#4813163 If you could see any movie made into a video game

Posted by ryan20fun on 19 May 2011 - 02:05 PM

depends, are you the guys trying to get there weapons or are you the guy that messed with that container ?
if the later, it could be fun.
former, ouch


#4813157 GameDev.net Community Challenge!

Posted by ryan20fun on 19 May 2011 - 01:46 PM


Thanks it works now, busy playing it.
and it has audio for me.


Glad it worked!
You seemed eagerly determined to play it, which is very flattering.


Thanks.
i Love the text on the way up (im only on level 2 now) but the one Cake up Ahead reminds me of Portal.
:) :) :)


#4812928 What's Your Favourite Game?

Posted by ryan20fun on 19 May 2011 - 02:53 AM

Crysis, Crysis Wars, Crysis Warhead (there all like the same with diffreent maps)


#4812927 If you could see any movie made into a video game

Posted by ryan20fun on 19 May 2011 - 02:52 AM

i nkow of 1,
Tron Evolution
Good Movie
the Game has the same stuff as the Movie (dont have it but that is from what ive seen of it) and it has MultiPLayer to


#4812288 Can i handle it

Posted by ryan20fun on 18 May 2011 - 12:39 AM

i found this on makeing a game for android.
but i dont know why it took so long to find it.


#4812007 GameDev.net Community Challenge!

Posted by ryan20fun on 17 May 2011 - 11:42 AM

OK! I found something!

I was able to reproduce the bug on Windows XP, in VirtualBox -- TunnelJumper opens up, shows a console window and an OpenGL window, and then quits without an error message...

Selecting "Run in compatibility mode for: Windows 95" from the file properties allowed the program to run more or less flawlessly...

Hopefully, by next compo, the issue will be fixed :P


Yip That works, Nice Game by the way Lot better then mine.
just one prob, when i close it, the console window stays open, but i managed to close that with taskmanager.


#4799799 what C++ IDE & OS do you use

Posted by ryan20fun on 18 April 2011 - 02:03 AM

As for the poll, I don't like the fact Linux is rightly associated with Ubuntu.

i will change Linux / Ubunto to Ubunto (i associated Ubunto with Linux otherwise i would put Ubunto / Linux ) :)

Whoa, more arch linux users here then?!

and i am confused over this

Any ditribution other than Ubuntu is a "Linux derivative"?

i put Linux derivative there so that any unkown or such OS that is based on the Linux Kernel(did you know Mac is based on a Linux Kernel ?).




PARTNERS