-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model being a mess of colors/triangles #14
Comments
What is the format of the vertex buffer you're using (Blender and gms)? |
Try the latest .zip file from the code view of the repo (DmrVBM_Blender.zip) In #13 i received similar errors and sandman fixed the blender export like 20hrs ago. |
@Grisgram Thanks for the reply. I just redownloaded the latest version, and I read your thread and tried applying what @Sandman13sq said to do for the export, but am still getting the mess of colorful triangles. This has gotta be me screwing something up on my end... Here are the specific settings I did when I exported: I select my mesh, add a color attribute (Domain: Face Corner, Data Type: Byte Color), and go back to Scene where I have a format with Position, Color Bytes (RGBA), and UVs. (The format is: POSITION3 COLORBYTES4@"Color" UV2@"UVMap"). Then I export as a .vb file. Yet I'm still getting the colorful triangle mess... what specific setting am I missing/ what am I messing up? Help!!! |
@Sandman13sq That fixed the problem, thank you so much! One more question though — as seen here the model is coming out as one whole color (or one whole texture if I use "sprite_get_texture(sprite,0)" in vertex_submit). How would I make each part of the exported mesh different colors? So for example in the original image for the model I sent, the body of the arcade cabinet would be purple, the screen would be black, the buttons are yellow, joystick would be red, etc. Is it something to do with adding color attributes? But then how would I apply said color attributes to only a specific part of the mesh? Just need to know how to accomplish this and I should be good to go. |
as far as i can tell, you will get a unique-colored model in gamemaker unless you use textures and uv mappings. maybe i am wrong, but that's what i can see in the tutorial project |
Grisgram Yeah that seems like the case. Luckily you can export as a collection so that you can still add different color attributes to the model as a whole, just not the specific parts within a combined mesh (I don't think atleast). That's not too important though. That being said, this add-on is awesome and thank you Sandman13sq !!!! LIKE SERIOUSLY THIS IS THE BEST PLUG IN EVER SO MUCH THANK YOUU!!!! You deserve an award |
Hello, I'm trying to import a model of an arcade cabinet into GameMaker. On the left is how it appears in Blender, and on the right is in GameMaker and something is clearly wrong with it. The model being upside down is an easy fix, but what's going on with the mess of triangles/colors here?! I assume it has something to do with me not exporting the .vb file correctly? I've been trying for hours to figure it out but I don't know what's going on, please help
The text was updated successfully, but these errors were encountered: