Shader Extension 1.4
#61
Posted 05 May 2011 - 06:00 PM
#62
Posted 14 May 2011 - 07:18 AM
"Unexpected error occurred when running the game."
I dunno if I really should tell you guys this top secret... But anyway there is a tool that is designed to take the hard part out of writing shaders in assembly: ATI RenderMonkey. Give it a try, it really gives you the freedom to focus on designing the shader visually, and it generates the assembler code for you.
Edited by jobro, 14 May 2011 - 07:55 AM.
#63
Posted 14 May 2011 - 03:00 PM
This doesn't support GM 8.1 as far as I know.Error in GameMaker 8.1 Pro when using the extension and just an empty room:
"Unexpected error occurred when running the game."
I dunno if I really should tell you guys this top secret... But anyway there is a tool that is designed to take the hard part out of writing shaders in assembly: ATI RenderMonkey. Give it a try, it really gives you the freedom to focus on designing the shader visually, and it generates the assembler code for you.
#64
Posted 16 May 2011 - 09:15 PM
Btw authour of this when GMAPI is updated he sed he wiill do it by now please update this with new GMAPI.
#65
Posted 17 May 2011 - 05:47 PM
And your GFX card also supports 1.4, as they are all backwards compatible.
#66
Posted 02 June 2011 - 07:23 PM
Oh, I didn't know.MagicNumber guess why first ! Because GMAPI doesn't work with GM 8.1
For those that do not have Shader Model 1.4 support, your computer is old.
Edited by xot, 23 August 2012 - 05:29 PM.
profanity
#67
Posted 16 June 2011 - 06:22 AM
I know this is an old post but bear with me please.Question: Would this work on a integrated chip? I have a integrated graphics card on my computer so I wonder if this will work.
This depends, you can tell whether your hardware/chip has shader support based on the DirectX or OpenGL API you have. If your computer supports DirectX10 and upwards or OpenGl 3.0 and upwards, then you have roughly Shader Model 2.0 support.
Back on topic. Rather sad how GMAPI doesn't work on GM8.1 I much prefer the improved speed we get in GM8.1 right now...
Also for those mooning over Shader Model 2.0 and up, we need to pester Mike Daily about changing a couple of the Direct3D Interface names
#68
Posted 03 August 2011 - 04:31 PM
As for RenderMonkey as I hinted you about above. It generates the code in C or C++. No programmer of range so I can hardly distinguish between them, but the point is: All shaders are created in real time. Say that you add a color shader, then that color shader is made available and editable, as well as previewed in real time. So check it out, for a tool being free it is pretty darn awesome to say the least.
I got a few questions:
1. Some people asked about the XYZ paramters. But couldn't Z be translated to depth? At least that is how it is done in 3D.
2. Can you take a shot of the current viewed area of the level, and do that on different depths?and save it to a surface, then render each individual surface differently? You got in the room editor the standard depth of 100000, then you could use a foreground at 90000, and a background at 110000 just as an example. It would be really nice if one could create the basic level structure to be not affected by any shader, then apply a shader to the layers below. Is this possible
Edited by jobro, 03 August 2011 - 05:54 PM.
#69
Posted 21 September 2011 - 02:39 PM
#70
Posted 19 October 2011 - 12:39 PM
firstly, i cant seem to change the texture wrap mode from anything except clamp. (I specifically set it to mirror, but its just clamping)
secondly, when i add a background image to my game my shaders behave weird.. you see, the really strange part is that the background doesn't even need to be used. if there is a background sitting in my backgrounds folder, my shaders still screw up. (the shader i am using is pretty much a copy of your distort shader, except that it takes a second texture and copies that textures alpha value into the resulting image..so nothing complicated).
edit:
just wanted to commend you on what an awesome job you did regardless.. came into the thread with problems so i just thought i'd point that out lol. the possibility this unlocks..awesome.
edit edit:
using gamemaker 8
Edited by newbguy, 19 October 2011 - 12:42 PM.
#71
Posted 27 April 2012 - 10:47 AM
I found your shader example in the GMAPI topic and have implemented some pixel shaders with it. I was so excited to get started I didn't even look for this topic first. I think it would have saved me a ton of time. No worries, I got exactly the effects I was going for. It was touch and go, but the "mad" instruction saved my bacon (along with two math instructions).
It's a shame this doesn't work with newer versions of GM because I think people could use what I'm working on. It's a way to test GM games for color-blindness accessibility. I already made a proof-of-concept version using GM's built-in functionality, but it is very slow compared to a pixel shader.
I can't wait to try some more advanced effects with this. I've been wanting to get started with shaders for the longest time. Your original project was just the boost I needed. A million thanks to you, LSnK.
#72
Posted 22 May 2012 - 10:46 AM
I have a modern pc running windows 7 x64. I'm using Game Maker 8 pro
Specifications:
Radeon HD 6990 graphic card and a 6 core phenom cpu 3,2ghz.
8gb ram.
EDIT: I didn't read that it doesn't work with new Game Maker versions...
Edited by GS-games, 22 May 2012 - 10:53 AM.
#73
Posted 19 July 2012 - 06:29 PM
#74
Posted 20 July 2012 - 12:06 PM
There is a GMAPI that works with GM 8.1: http://gmc.yoyogames...howtopic=519138
Do you think you could update this to work with that?
#75
Posted 01 August 2012 - 07:57 PM
Could I use this too:
Draw a huge texture on a polygon and check per pixel where on the polygon it is, and draw the appropriate pixel from a certain texture at a certain position on the texture there on the polygon? So say I had 500 different textures. Could I use this shader system to draw all/some of these textures on the bigger polygon at any position?
If it can, this is probably going to create the fastest voxel rendering engine the GMC has ever seen...
Any ideas?
Zesterer
#76
Posted 01 August 2012 - 09:51 PM
- GM 8.1.x would require my version of the GMAPI to provide access to the Direct3D8 stuff (which I don't personally know where/how GM keeps in memory, so would need a lot of research), doable if there is demand since I don't require it personally at this time.
- GM For Mac would require a Mac developer. Since I don't own GM for mac or any apple computers I cant do this at all
- The Windows and Mac Studio exporters should be possible. If iOS and Android extensions can be written in native code/java (which can then call native code) I suspect you can do a similar deal as the Window's version, but again I don't own the required hardware and licenses to look at the GM Studio options.
So really, it comes down to someone that has everything required putting the required work in, or those that are capable but don't have the needed resources getting those resources somehow.
#77
Posted 02 August 2012 - 07:50 AM
Alternatively, would a rendering engine such as GMogre, Ultimate3D or the like support shaders like the one I require? I hope so...
I need the shader to have the capability to draw multiple (up to several thousand) textures on one polygon, but at different positions. Its gonna be complex, but if it works, the advantages are huge.
I'd love it if someone could help me out with this a bit, it is one of the first times I have come across a programming problem I cannot solve with just maths and GM before.
Zesterer
#78
Posted 02 August 2012 - 09:44 AM
Several thousand textures I think is basically impossible on any hardware accelerated GPU in any practical way, since there is not hardware support to sample that many in a given pixel/fragment program. You could build it up using an off screen render target perhaps, but then you are basically like rendering the entire thing 100 times per frame. I also see no need given that a single polygon is a pretty small thing in modern graphics, and so in many cases is likely to have less pixels than your texture count there.
#79
Posted 02 August 2012 - 11:01 AM
I have a 256 textures stored in a sprite (as multiple subimages)
I wish to draw 2 polygons (a square) with a patchwork of these textures on it. Each space on the square (the square is 16x16 units), the texture it should be is defined in an array. The only other way I could think of is drawing to a surface/backgroundm and then drawing this as the texture. But I have several thousand of these, each one unique. Thats a massive memory consumption. Too much for what I need :S
Not drawing >1 texture at one position, just a patchwork of different textures on the same quad/double polygon.
Zesterer
#80
Posted 02 August 2012 - 12:30 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users












