Ulysses

General => Developers Corner => Topic started by: Golden-Death on October 13, 2006, 08:17:07 PM

Title: Drawing
Post by: Golden-Death on October 13, 2006, 08:17:07 PM
If I wanted to draw with a pen like function on the ground in game for others to see, what would be the best method?
Title: Re: Drawing
Post by: Megiddo on October 15, 2006, 11:55:42 AM
Quads are the only direct thing you can use from lua to draw lines in the 3D world. You could also create small rectangle models and use those. :P
Title: Re: Drawing
Post by: Golden-Death on October 15, 2006, 07:28:47 PM
Mm itd get really laggy. I was thinking of using such a drawing gun in a gamemode
Title: Re: Drawing
Post by: JamminR on October 15, 2006, 08:45:36 PM
It would be difficult, but you could 'attach' GmodRects to 3d point(s) in space and convert it to 2d the same way my targeting system does.
Once that point was set, you could use any Rect material you wanted to do different things. I could see various 'materials' being created and drawn on a wall. One point for each material.
No where near as laggy as quads. (but, not in 3d space either, would only really look well when looking at a flat wall.)
Could adjust for size depending on distance away, to attempt to give a 3d look to it.
Use different materials, circle, angle, lines.

Sounds painful, but possible. ;)

I'm going to have a LONG learning curve I think, but I'm really looking forward to what can be done on client end of GM10
Title: Re: Drawing
Post by: Golden-Death on October 16, 2006, 04:56:36 PM
Or thinking about it, I could use a trail sprite like in lasertag or whatever that bouncy laser game garry made is and have it be drawn where you're pointing.
Title: Re: Drawing
Post by: Megiddo on October 16, 2006, 05:42:49 PM
You could use ropes! :P
Title: Re: Drawing
Post by: Golden-Death on October 16, 2006, 11:31:34 PM
But what knot would i use?  ???
Title: Re: Drawing
Post by: Mank on October 29, 2006, 12:12:14 PM
Haha, I think that would be a cool thing to have.