Author Topic: Drawing  (Read 6309 times)

0 Members and 2 Guests are viewing this topic.

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Drawing
« 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?


Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Drawing
« Reply #1 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
Experiencing God's grace one day at a time.

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: Drawing
« Reply #2 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


Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Drawing
« Reply #3 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
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: Drawing
« Reply #4 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.


Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Drawing
« Reply #5 on: October 16, 2006, 05:42:49 PM »
You could use ropes! :P
Experiencing God's grace one day at a time.

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: Drawing
« Reply #6 on: October 16, 2006, 11:31:34 PM »
But what knot would i use?  ???


Offline Mank

  • Full Member
  • ***
  • Posts: 209
  • Karma: 9
    • Ulysses Mod!
Re: Drawing
« Reply #7 on: October 29, 2006, 12:12:14 PM »
Haha, I think that would be a cool thing to have.
If you doubt your powers you bring powers to your doubts.