Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Naptha

Pages: [1]
1
Hi all, back with more questions  :)

I've been playing around with cubes some more and have written a class that can generate stuff like the attached program.  Now I'd like to add a horizontal starfield behind it and was wondering how to go about it.

After looking around a bit I had the idea that I can generate a layered starfield by either creating a texture for each layer and then blending them, or simply drawing all layers to one texture starting with the back layer.  I then thought I could render the 3D foreground to a texture with an alpha mask (somehow  ???) and blend it with the background...  when rendering the cubes to a texture can I change
Code: [Select]
pDevice->Clear(0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0, 0, 0), 1.0f, 0);to have a D3DCOLOR_ARGB in order to make it transparent for blending?

As you can probably tell, I have no idea how to do any of this right now.  Am I on the right track?  If I did manage to end up with a texture that had the 3D foreground on the starfield background, would I just draw a textured quad to display it?  How do you position the quad?

Your views and advice are greatly appreciated as always.   :)

2
C / C++ /C# / MSVC runtime problem
« on: June 30, 2008 »
Hi all,

I've been working through the tutorials at directxtutorial.com along with the book "Introduction to 3d Game Programming with DirectX 9.0c" by Frank Luna, in order to get my first spinny cube working.  Well I managed it, and managed to get uFMOD working for some music at the same time.

The problem I've come across is trying to distribute it.  When I try to run a release executable (compiled in VS2008) on my other PC, I get the error, "This application has failed to start because the application configuration is incorrect".  Some googling indicates that this is a problem with the VC runtime files and can be solved by either A) installing the VC redistributable on the target machine, B) distributing the runtime files and a manifest along with my program, or C) statically linking the runtime libraries.  I don't want to do A or B and doing C causes my compiled exe to grow considerably (and it still didn't work; the target machine then complained that d3dx9_37.dll couldn't be found - it has directx9.0c installed though?).

Can anyone shed any light on how I can overcome this?  Is there a way that I can remove the dependency on the VC runtime libraries?

Let me know if seeing the code would help and I'll post it for you. :)

Edit: ok, I fixed the missing d3d dll issue when statically linking, it was due to me using a newer SDK version than the redistributable version on my other PC.  Installing the June 2008 redistributable fixed it.  Should I be using an older SDK version to try and avoid that issue?  Anyway, that only resolved the missing dll issue, now it just crashes and asks if I want to send the dump to microsoft.  That aside, I still don't want to be statically linking those libraries, so I'm no further forward.  :-\

Pages: [1]