texture

  1. L

    Question - IDE Texture scaling shrinks sprites - UV issue, or intended behavior?

    I'm designing my current project to a 1080p standard. However, some of my assets ideally need to be above 2K to give some flexibility for zooming/panning. This is all fine and good on my PC when running with texture pages set to 4096x4096, but some of my low-end test devices struggle with this...
  2. A

    GMS 2 Drawing texture page instead of application surface

    I'm drawing a part of the application surface for a shader, but keep getting an error message: "Trying to set texture that is also bound as depth buffer - bailing..." I've tried removing the shader, and this reveals weird behavior, which is that if I try to draw the application surface it just...
  3. G

    Way to get texture width and height in GM 1.4 in pixels

    I need to get the width and height of the exact texture page an image is on to do some calculations with. I can get a lot of other information but I'm having trouble getting the actual width and height of textures on demand. I CANT just assume they are 2048x2048 or whatever I set the texture...
  4. T

    Windows CreateTexture2D failed

    Hello! I stared to get this error every time when I complile and run the game. Win32 function failed: HRESULT: 0x8007000e Call: GR_D3D_Device->CreateTexture2D at line 423 in file \TexturesM.cpp It happens after I added some additional animations and objects. Not so big ones. I saw a similar...
  5. D

    3D 3d model texture background black (with shader)?

    Hi, I'm trying to climb a 3D grass on GMS2. I created default some test shader.Texture background is black. Anyone know the solution? I'm using the codes below. shader_set(shader_test); gpu_set_alphatestenable(true);// not work gpu_set_alphatestref(40)// not work d3d_transform_set_identity()...
  6. angelwire

    Legacy GM [Unsolved but Useless] Compress sprite to binary alpha values using shader

    EDIT: After some tests, it turns out that the speed of buffer_get_surface for an 8x8 surface is pretty much the same speed as what it would be for a 256x256 surface. So not only will this not make my game faster, but it would slow it down. Never figured out why the shader didn't work but it's...
  7. S

    Windows Error - Win32 CreateTexture2D failed

    Hi, I'm not sure this is the right thread or not but error occur after I transfer project to GMS2. Some of my testers got create texture error while playing game less than a minute. Myself and most players don't get this error. He using Win7 / 64bit / DirectX11. He played previous version...
  8. cidwel

     Kind reminder: Do not add bigger tilesets than the configured texture page size

    I have wrongly asked a question in my personal profile and got a response from Nocturne that we shouldn't be asking things in that page. Well this is 100% comprehensible, even if I have my reasons to do there instead here depending of the kind of question. So I feel that will be better to do a...
  9. O

     GM7 Sprite Editor

    When I started using Game Maker, I came up with a good method for creating seamless textures with the sprite editor for my 3D projects. I would stretch it to 300% then paste the old sized image back in rows of 3 so I could use the blur feature to smoothly merge the borders of the image and then...
  10. A

    GMS 2 [SOLVED] Recommended target texture swaps?

    I would like to make a 1920x1080 game, but I'm wondering if I'm going to have performance issues later on and should just scale down while I can. I'm thinking I would need about 5 4096x4096 texture pages at a time, considering texture grouping and flushing. Does anyone have any experience around...
  11. G

    3D [SOLVED] Texture not loading properly

    So, I just tried to load a .d3d model into Game Maker 8 and the texture got messed up. I converted an .obj model to .d3d (tried two tools - D3D Wizard 3 and Converter 1.1). The .obj is ok in fragMotion, but the .d3d gets a messed up texture. Could anybody help pls? P.S. Yes, I'm still using...
  12. COWCAT

    Shader - Getting the texture size of texture2D?

    For my game, I'm using a shader to do a "magnifying glass" effect on the screen. It works perfect on all environments (Windows, PS4, Vita, iOS...) EXCEPT some Android phones. I've spent time to understand why, and it seems the "actually used" texture size for "gm_BaseTexture" varies...
  13. LestradeTGQ

    Mac OSX Game not rendering in macOS / asset cache issue

    Hey folks! I'm running GMS2 2.1.0.212 in macOS Sierra (10.12.1) on the following hardware (not my primary machine, obviously): MacBook Air (11-inch, Mid 2013) 1.7 GHz i7 8GB RAM 512GB SSD At no point have I been able to run my game, which uses objects that utilize blend modes, successfully. A...
  14. gnysek

    GML Draw particle images from texture page as sprites

    GM Version: GMS 2.x Target Platform: Windows and others Download: http://gmclan.org/uploader/23/particle_texture.yyz Links: na Summary: Draw particle images from texture page as sprites Tutorial: Hi. I've noticed recently, that particle shapes are exported together with texture page, on same...
  15. N

    Special case with texture

    Hi all :) I have a special problem with my texture which works perfectly when i'm using view tool in the room editor: but now i need to custom a little bit this view and when i modify it directly in a step event i get this: If you can't see the images it's like a texture bug, we can see...
  16. Anixias

    GMS 2 3D Floating Objects Problem

    I'm making a 3D game using the approach found in Don't Starve, so my trees are 2D images rendered onto vertical planes. I have an issue, though. My trees "float", because the plane sits directly on the terrain, so the bottom of the plane is actually some graphical space below the tree stump. How...
  17. Kentae

    Graphics Multi Texture Shader for use in 3D

    GM version: Game Maker Studio 1.4 Target Platform: Windows, but can probably be used for more than that. Last Updated: 08 / 08 / 2017 For so long did I try to find a multi texture code or shader or tutorial or whatever but I could never find one for Game Maker. However, not to long ago I found...
  18. The Reverend

    Shaders Basic Shader Q2: texture coords of another sprite [solved]

    I'm still trying to understand shaders a bit better and now I try to understand how to use another texture i.e. for masking. (Edit: rewrote to simplify) Q: What ways are there to access interpolated texture coordinates of a second texture inside the fragment shader? This returns the...
  19. NathanAuckett

    Texure Page Size vs Count

    Hi all. We are trying to optimize our game. We use allot of large graphical assets and because of this we have allot of texture swaps. Reading this post: http://www.yoyogames.com/blog/23 , this is not ideal. So we made efforts to reduce our swap count. By using the largest texture page size...
  20. T

    Legacy GM [SOLVED] Texture From Sprite Sheet?

    I've realized the question I had was a misunderstanding, so I've erased it. Sorry for wasting some peoples time.
Top