Reputation: 1 Apprentice
- Active Posts:
- 41 (0.12 per day)
- 04-April 13
- Profile Views:
- Last Active:
- Aug 21 2013 01:43 AM
- Dream Kudos:
Posts I've Made
Posted 9 Jun 2013
Sorry for not replying for some time, my computer died and had to get a replacement computer
Anyways. Yes i did try to do this. Or atleast i tried to search for how to fix it and i found out that i had to set the hlsl files settings So i did this and removed the entry point for the hlsl file (thereby making it a compile from file, file ).
I ran the code and the programm started up as it should displaying a blue dirx screne
the only problem was that i think that it didn't compile my shader because it should (insted of just an blue scene) have displayed a lit cube?
Anyways i guess i'll look more into the problem once i get my main computer repaired.
So thanks for your help guys!
Posted 5 Jun 2013Honestly, I have no idea what you've got going on there. But, I might take a stab at it.
Did you overwrite your main .cpp file with another file? As you may know, there has to be a "main" function for the program to start. And (although I've never used anything higher than VS2010 and haven't coded in C++ for awhile) there should be a place in the project settings to define which file is the primary file that starts the whole thing off. And the compiler should look for the "main" function in that file to begin compiling and as the starting point for the program.
If I'm misunderstanding what's going on forgive me. But if that is what's going on I would say don't use High Level Shader Language. High Level Shader Language is an advanced game/graphics topic that shouldn't be approached until you feel pretty confident at the intermediate level of game programming. And probably the intermediate level of 3D game programming as I'm not sure anyone really uses HLSL in 2D much except for advanced special effects... maybe.
I know a lot of tutorial stuff gets into shading really early. I think that's kind of a mistake unless there is a tremendous amount of hand holding going on with it, since it really is a completely separate subject one must learn on top of game programming and it gets really deep into vector math really quick, which a lot of aspiring game programmers may not be well versed in.
XNA with C# provides one of the easiest paths into HLSL I think. If you want to see a bare bones HLSL shader file I can produce one of those. Outside of that, you mostly have to know how to call the shader within the program. It's all the stuff you would normally do without the custom shader and then plus the call to the custom shader. If you have the option of built in shaders, use those until you are very familiar with using them before trying to write custom shaders.
Anyway, maybe that's not what you have going on at all. If not, I apologize for any assumptions.
You seem to be the closest to what i think is the problem.
I've had some experiance in hlsl, and WinApp for some time now so things are going just fine.
I've already made a few programms that ran just fine, displaying triangles and lit cubes etc.
But the problem started when i switched to VS2012?
So i guess i'll have to take a look at that file setting somehow
Thanks for the help.
Posted 21 May 2013No problem. Just had a little google myself and sysWOW64/ is a proper Windows directory that stores 32-bit versions of system files. I'm pretty sure that from the messages you are seeing and the potential confusion with this folder that your environment variables are pointing to the wrong places.
You either need to sort it out by inspecting your environment variables and confirming where they are pointing to. Might take a bit of time.
But i could just reinstall VSC++ right? havn't really had any experiance with all those variables and IDE setups x) So if i could get away with a reinstall i'd be happy
Posted 21 May 2013Hey, When i try to setup DirectX (the first box), i get 2 errors:
error LNK2019: unresolved external symbol _Direct3DCreate9@4 referenced int function "int_cdecl Game_Init(struct HWND_*)" (?Game_Init@@YAHPAUHWND_@@@Z).
error LNK2020: unresolved externals?
What is this and how do i fix it?
Guess it's a problem with my directories? but i did link both libaries and includes?
Posted 21 May 2013Looks like your environment variables need fixing, no idea why sysWOW64/ is being searched for system files. You need to work out how to fix that.
Ok, thanks. Guess I'll just have to google my way around Hate when things like this happen
The only thing i don't get is why i can run other directx programs but not this one for directx themself?
anyways... on with the googleing
And thanks for the help!
- Member Title:
- New D.I.C Head
- Age Unknown
- Birthday Unknown
- Click here to e-mail me
Magn0733 hasn't added any friends yet.