I'm using c++ to [try] to make a simple 3D engine for gamemaker. I have managed to create the window, however when I select it and press "Escape" it doesn't do anything. I have to select the gamemaker window and press escape to exit. This creates a problem, as all events/user input that the user does in gamemaker are not detected by my engine... So my question is how do you guys do it? Or is there a way to embed my window into/overtop of the gamemaker one?
A good example of what I want done is GMOgre or U3D, they both draw a separate window overtop of the gamemaker one. They both still run GM in the background and can detect user input.
Any help would be greatly appreciated.
Cheers
~~Brett14;
PS: If you have any questions about what I'm asking, just ask!
- Game Maker Community
- → Viewing Profile: Topics: brett14
brett14
Member Since 02 Jan 2008Offline Last Active Jun 15 2013 04:45 PM
About Me
I almost exclusively use C and C++. I have created a game development tool similar to gamemaker. Visit: http://gamedevstudio.yolasite.com/
Community Stats
- Group GMC Member
- Active Posts 1150
- Profile Views 12092
- Member Title GMC Member
- Age 19 years old
- Birthday January 10, 1994
-
Gender
Male
-
Location
Canada
-
Interests
I almost exclusively use C/C++ for programming. I am the creator of GDS, a game development environment. Please see the website below.
-
Version
GM8
30
Onwards and Upwards!
Latest Visitors
Topics I've Started
Help with detecting input in a different window
02 September 2010 - 07:51 AM
Huge 3D Terrain Engine - 512x512 heightmap example
10 August 2010 - 09:42 PM
Huge 3D Terrain Engine
Written by: Brett Binnersley (Brett14);
Credit is NO LONGER required (despite what the GMK may say) but is greatly appreciated!
GM8.0 only at the moment, sorry.
Here's a screenshot, however you need to actually run the example to see how it works.
What is it?
This is a 3D terrain engine which supports HUGE terrains. The biggest size that I recommend is a 512x512 terrain, however you can go higher. It has a colormap, a detailmap (with LOD) and an overlaying texture to draw the terrain.
What Techniques did you use?
-I have used surfacefix.dll to prevent Zfighting between the detailmap, the colormap and the overlay texture, and they draw perfectly over top of each other. I have to thank Effexgames for this idea, as I was stumped on how to prevent Zfighting between different layers of the terrain without changing the Z value of the models. Since GM uses an 8bit Zbuffer it was a really noticeable gap between the layers and it just wouldn't do.
-Since heightmaps take such a long time to load I've included a converter which converts the heightmap into a grid, and saves the grid as a terrain file. This terrain file takes only a few seconds to load as opposed to a couple minutes for the heightmap.
-The example terrain included is a 512x512 heightmap. The only way that it is possible to use a terrain this vast in size in GameMaker is to split it into many smaller models and only draw the terrain around you.
Download Link?
Download
Check out my newest project: GameDev Studio
~~Brett14;
3D Destructable terrain
19 July 2010 - 07:56 AM
I made this a while ago, but never really put it out there. Anyways heres a very efficient and fast destructible terrain example.
You can find it here - DOWNLOAD
If you use in a game, credit would be appreciated!
Please Check out my latest project: GameDev Studio
This shows you how to create 3D destructible terrain, how to blast trees out of the ground, and (of course) how to blast out the ground itself!.
It is organized into separate scripts so that you can understand how it works - However there are not many comments and you'll need to know how to program in gml to edit it.
~~Brett14
You can find it here - DOWNLOAD
If you use in a game, credit would be appreciated!
Please Check out my latest project: GameDev Studio
This shows you how to create 3D destructible terrain, how to blast trees out of the ground, and (of course) how to blast out the ground itself!.
It is organized into separate scripts so that you can understand how it works - However there are not many comments and you'll need to know how to program in gml to edit it.
~~Brett14
3d Views - Getting Direction To Mouse From
04 May 2010 - 12:26 AM
I need help with some math for 3D views. I honestly have no clue where to start with this.
I have the 3D view shown below

If I clicked in that certain position. I'm pretty sure this uses some vectors (which I have not done in school yet...) to figure out the direction and zdir. Once I figure that out, I'm going to do a raycast in that direction (using a dll) to find the polygon that it hits and return it.
I have the 3D view shown below
d3d_set_projection_ext(x,y,z,x+cos(degtorad(direction))*cos(degtorad(zdir)),y-sin(degtorad(direction))*cos(degtorad(zdir)),z+sin(degtorad(zdir)),0,0,1,45,view_wview[0]/view_hview[0],1,65535);I want to know the direction and zdirection to the mouse

If I clicked in that certain position. I'm pretty sure this uses some vectors (which I have not done in school yet...) to figure out the direction and zdir. Once I figure that out, I'm going to do a raycast in that direction (using a dll) to find the polygon that it hits and return it.
How To Calculate Correct Normals
17 April 2010 - 01:19 AM
Simple question, what is the code to calculate the correct normals [nx,ny,nz] of a triangle? I know I've seen it in here before, so I searched for about 15 minutes with no results
I need it for a 3D level editor I'm creating, to allow the users to have lights in their games. (In my sig)
Thanks
~~Brett14;
Thanks
~~Brett14;
- Game Maker Community
- → Viewing Profile: Topics: brett14
- Privacy Policy
- GMC Rules and Forum Rules ·



Find content