Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Appeal for 'Grid' Shader

Author
Message
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 3rd Sep 2017 12:15
I have been searching round the net looking for a wireframe grid shader to use in my 3D editor and as much as I try and understand the code I am looking at I concede that I don't have a shader brain, I am currently using a textured plane with a grid like image tiled over over it and its ok but I really want a proper wireframe grid like in a 3D modelling tool as any object with a -y gets lost behind the plane, I found the below code in the unity forum and it looks like it has all the settings I need but I have no idea how to make it AppGameKit ready.

any of you shader gurus want to convert this for me, stick it in the store I'm willing to pay.

janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 3rd Sep 2017 13:42 Edited at: 3rd Sep 2017 14:36
Quote: "stick it in the store I'm willing to pay"

I don't know... should I ? How much then ?
Actually I like to encurage sharing code, but I want to live from coding at some time too
[Edit]
I was interested in how the shop works anyway so here it is Grid Shader
Let me know if there is something missing and I'll add it to the download.
[/Edit]
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 3rd Sep 2017 15:52
That is perfect, Just what I wanted, Thank you.

I had to play with it a bit to get the results I wanted on a bigger scale but I think it looks pretty awesome, very professional

janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 3rd Sep 2017 16:28
Great to hear !
That also means I already got a purchase awesome
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 3rd Sep 2017 18:41
There is one small addition that would make it complete, axis lines, a green line along the centre of the z axis and a red line along the x, like in blender (or other modelling software)



Also, see the blue circle, I don't know if that can be done with a shader (not the circle the x,y,z thing) or if its a small model attached to the screen, but it would be cool to have, I know you already got object outline in your shader pack so I am happy wait for that, also 1 or 2 other things in that pack that will benefit my editor
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 3rd Sep 2017 20:38 Edited at: 3rd Sep 2017 20:46
Updated the Grid Shader
For the widgets I suggest you creating 3 individual objects or meshes so you can check which axis the mouse hits.

PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 3rd Sep 2017 22:20
That's perfect thank you.

Yes I am experimenting with widgets but I'm getting a placement issue with objects with an offset point of origin so I need to get that figured out, overall though this project is coming on nicely.
Golelorn
7
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 3rd Sep 2017 22:40 Edited at: 3rd Sep 2017 22:48
Perfect. You now have another sale.

Thanks.

Nevermind. I figured out how to change the color and transparency.


Could we get the last grid line on the right and top?
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 3rd Sep 2017 23:31
Quote: "Could we get the last grid line on the right and top?"


Increase your plane size by 2 or 3 units, that worked for me.
Golelorn
7
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 3rd Sep 2017 23:43
Thanks!
nz0
AGK Developer
16
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 6th Sep 2017 00:10
The store idea seems pretty good. How come I never heard of this?

Login to post a reply

Server time is: 2024-04-16 05:09:54
Your offset time is: 2024-04-16 05:09:54