Schlammy Posted May 21, 2013 Share Posted May 21, 2013 hey guys. Me and my Team are creating a new gamemode like Adventure Survivel from Bear grylls. We made a map larger then San fierro and now we want to make a minimap of this island. But How? The Game is to slow to render all of the more then 500 thousend Objects. What can i do now? Link to comment
Schlammy Posted May 21, 2013 Author Share Posted May 21, 2013 its not a problem of my computer i have a new one with nvidia geforce gtx 690 and the newest I7 i wan to make a highmap image of this hole island of objects but the server cant render this all Link to comment
DiSaMe Posted May 21, 2013 Share Posted May 21, 2013 You can cast a ray from sky to the ground to find what material is at that point using. So if you create a render target, go through every square meter (or some less precise area, like 2x2 or 4x4) of the map, getting the material and drawing a pixel of its color into the render target during the process, the render target will contain the map which you can save into the image file. dxCreateRenderTarget processLineOfSight, testLineAgainstWater --to get the material dxDrawRectangle --to draw the pixel dxGetTexturePixels --to get the texture data fileCreate, fileWrite, fileClose --to write that data into the file And remember, when you cast the ray, the local player must be near enough to make sure that objects are loaded. Link to comment
Schlammy Posted May 21, 2013 Author Share Posted May 21, 2013 Can we take a talk later o in the next days about it? It would be nice if you could help me a bit Link to comment
DiSaMe Posted May 21, 2013 Share Posted May 21, 2013 Maybe, but why don't you just ask here? Link to comment
Schlammy Posted May 22, 2013 Author Share Posted May 22, 2013 yes you`r right. Ill try it first by myself Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now