Coro

Members
  • Content count

    9
  • Joined

  • Last visited

Community Reputation

112 Neutral

About Coro

  • Rank
    Newbie
  1. UDK - Performance question

    Thank you! Sorry I never replied, I never got an notification. This is really good information.
  2. Hey Everyone I'm currently having a problem with some libraries that I'm trying to import into my project. I have created an OBJ Loader in which you can load the contents of an "obj" file into some C arrays, which then passed into OpenGL (Glut) to render to the screen. My problem is that I have certain libraries conflicting with each other. Glut requires "windows.h" for the "gl.h" file. But I also need some other standard libraries such as: <SDL> <cstdlib> <vector> <string> <algorithm> <fstream> <cstdio> <stdlib.h> <stdio.h> <assert.h> So all together my code looks like this: [CODE] #include <SDL/SDL.h> #include <cstdlib> #include <vector> #include <string> #include <algorithm> #include <fstream> #include <stdlib.h> #include <stdio.h> #include <assert.h> #include <cstdio> #ifdef WIN32 #define WIN32_LEAN_AND_MEAN #include <Windows.h> #endif #include <GL/glut.h> [/CODE] From this I get a whole load of errors: [url="http://imagebin.org/229514"]http://imagebin.org/229514[/url] Any help will be appreciated! P.s. I know that its conflictions between the libraries but I don't know what things to undefine.
  3. Thanks for your reply, I've tried everything so far with no luck. I was thinking that it might be possibily due to the placement of my code? Since everything gets compiled in a linear fashion and the load parameter is near the end of the file. May be it's not locating the file because it isn't being loaded at the right time. (Update: I was about to upload my code into I found out that somehow all of my .cpp files have been overwritten by the same texture loader I built a while ago, which has now angered me. I will try re-writting everything and hopefully may I might figure out my error along the way this time. If not I shall upload the code once I'm finished, Sorry about this and thank you everyone!)
  4. Hey thanks for your reply. I have tried copying the obj file to the folder I compiled the application into and then tried running the program outside of Visual studio. I never create my projects in the default folder that VS selects. I've even tried pasting a copy of the obj file to my "D" drive and change the code to: [CODE] int cube; cube=loadObject("D: est.obj"); //load the test.obj file [/CODE]
  5. Hey Everyone I recently decided that I would create a project based in Open GL to increase my knowledge of the API and create something that may be useful to me. So far I have followed some tutorials from a programmer on youtube called "TheCplusplusguy". Here's the begining tutorial for the "OpenGL (SDL,C++) tutorial 8 - Simple wavefront (.obj) model loader (part 1)" [ [url="http://www.youtube.com/watch?v=849hXuOv0i8&feature=BFa&list=PL0AB023E769342AFE"]http://www.youtube.com/watch?v=849hXuOv0i8&feature=BFa&list=PL0AB023E769342AFE[/url] ]. So I followed the code along and made my adjustments where I saw fit in Visual Studio 2010. The program compiles correctly but for some reason will not load the "test.obj" file that is placed within the same folder as the compiled binary filles. [CODE] if(!in.is_open()) //if not opened, exit with -1 { std::cout << "File not found !" << std::endl; return -1; } [/CODE] Is the algorithm used to tell the user in the console that the file was not opened/found. [CODE] int cube; cube=loadObject("test.obj"); //load the test.obj file [/CODE] Is the code that is used to tell Open GL what the filename is that I would like to use to render into the viewport. I have not mentioned that I have also tried creating two more separate projects in which I've used version 1 and 2 of the programmers obj loader code to see whether it not it was something I was missing. [ [url="http://www.pastebin.com/6Q7zS7tC"]http://www.pastebin.com/6Q7zS7tC[/url] ] Was the place where he uploaded the code. Both projects compiled fine but I have the same problem. I did exactly as he said with blender and even tried downloading and using the same version that he had in the tutorial. I can't seem to figure out why. May be there's something simple that I'm just forgetting. Any help will be appreciated! Thank you Coro
  6. Thank you so much. You've explained that perfectly, I had a good Idea about what was going on but you explained the bits I couldn't figure out!
  7. Hey everyone I was looking at a game engine to see how the different developers structure the code in their projects. I came across this algorithm but cannot figure out what it does exactly. This algorithm is stored in a header file. // Static compile-time assertion [color=#0000ff]namespace [/color]StaticAssert { [color=#0000ff]template[/color]< [color=#0000ff]bool [/color]> [color=#0000ff]struct [/color]FAILED; [color=#0000ff]template[/color]<> [color=#0000ff]struct [/color]FAILED< [color=#0000ff]true [/color]> { }; } [color=#0000ff]#define[/color] ASSERT_STATIC( exp ) (StaticAssert::FAILED< (exp) != 0 >()) Can anyone explain what it does? "ASSERT_STATIC" is implemented in a cpp file. Here's the code: // Check some platform-dependent assumptions // Note: this function is never called but just wraps the compile time asserts [color=#0000ff]static void[/color] __ValidatePlatform__() { ASSERT_STATIC([color=#0000ff] sizeof[/color]( int64 ) == 8 ); ASSERT_STATIC( [color=#0000ff]sizeof[/color]( [color=#0000ff]int [/color]) == 4 ); ASSERT_STATIC( [color=#0000ff]sizeof[/color]( [color=#0000ff]short [/color]) == 2 ); ASSERT_STATIC( [color=#0000ff]sizeof[/color]( [color=#0000ff]char [/color]) == 1 ); } Thank you for reading!
  8. 2D Map/Terrain Editor recommendations

    I don't know if its exactly what you're after but there's a pretty good 2D map editor called "Tiled". If you visit [url="http://www.mapeditor.org"]http://www.mapeditor.org[/url] you can download the executables or source code. It runs on Windows and Mac OSX.
  9. [font=tahoma,geneva,sans-serif]Hey everyone[/font] [font=tahoma,geneva,sans-serif]I've been coming to this site for years but have only just decided to sign up. Hopefully I can help out the community and vice versa.[/font] [font=tahoma,geneva,sans-serif]My question is about getting the best performance out of the UDK Package for my levels. I have gone through many different tutorials for the modelling suite "Maya" (2011), and I am currently in the progress of modelling a house that I would like to import into UDK later. I was thinking back to other projects I have seen in which houses had been developed via using the BSP geometry and just attaching textures to them. I was wondering would it be better for me to model my houses via Maya and then import them or to attempt to create them with BSP's instead. [/font]Is there going to be any deterioration in frame rate from using one or the over? [font=tahoma,geneva,sans-serif]Thank you to anyone, and hopefully I don't sound stupid.[/font] [font=tahoma,geneva,sans-serif]Coro[/font]