• cam3d2d with models
    9 replies, posted
Hey guys, I am trying to make a vending machine, and adding a choice of models in small cubes. I've tried working with render.Model, but either i'm working wrong with it, or that's not what I need to use in my 3d2d function. In addition, after me looking at a button i'd like it to chance color, i knew how to do that (something with Plane), but forgot which function it was, could be nice if you guys remind me, and show me an example or two :P Thanks to all of the helpers!
Plane is not necessary, you can just check on-entity-position at which player is aiming. I can give you a tiny snippet for that once I get back.
[QUOTE=Netheous;46666291]Plane is not necessary, you can just check on-entity-position at which player is aiming. I can give you a tiny snippet for that once I get back.[/QUOTE] Allright ^^. About drawing models in a cam3d2d? I've seen it happening on a vending machine released on scriptfodder,and trying to figure out how did he do it.
If you're drawing in a VGUI panel use [url=http://wiki.garrysmod.com/page/Category:DModelPanel]DModelPanel[/url]. If you're trying to draw the model in the world use [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Global/ClientsideModel]Global.ClientsideModel[/url].
[QUOTE=meharryp;46666814]If you're drawing in a VGUI panel use [url=http://wiki.garrysmod.com/page/Category:DModelPanel]DModelPanel[/url]. If you're trying to draw the model in the world use [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Global/ClientsideModel]Global.ClientsideModel[/url].[/QUOTE] Well its not a VGUI, but its a flat ClientsideModel, just like in this scriptfodder product: [IMG]https://cdn.scriptfodder.com/uploads/script_media/172e050b6f1e8bf493a63848817e5161.png[/IMG]
That's a 3D2D vgui, this might help: [url]https://github.com/HandsomeMatt/3d2d-vgui[/url] [editline]8th December 2014[/editline] It seems to be using [url=http://wiki.garrysmod.com/page/Category:SpawnIcon]SpawnIcon[/url], hopefully these will give you somewhere to start.
Does it actully work? a few months ago i tried using it and got a strange error, after reporting it he closed my issue, no questions asked. [url]https://github.com/HandsomeMatt/3d2d-vgui/issues/2[/url]
That error was fixed a few months ago, just grab the latest version.
[QUOTE=meharryp;46667185]That error was fixed a few months ago, just grab the latest version.[/QUOTE] Just wondering, is it just like the cam3d2d work? if your not in the area, it wont draw it?
What? cam.Start3D2D draws regardless of where you are, unless you add distance detection.
Sorry, you need to Log In to post a reply to this thread.