Rending Lines On Hardware
#1
Posted 10 March 2009 - 03:35 AM
#2
Posted 10 March 2009 - 07:47 AM
#3
Posted 10 March 2009 - 04:00 PM
Yes, but then there are issues if you look at the line-segment from nearly along it's axis. Perhaps there are ways to draw a line without using polygons or the fixed pipeline?
#6
Posted 10 March 2009 - 08:09 PM
As for doing rendering with them, I would be surprised if it was any different than rendering with regular triangles...
#8
Posted 10 March 2009 - 11:20 PM
While extremely odd, you could render a quad (ie: your canvas) to take up the full screen. Pass the quad into your vertex shader along with a point of origin, a vector, and a scalar value as variables. I take it you're familiar with the line equation, L = P + t (V)? The vertex shader would simply convert the values into tangent space (trivial with a quad), if not already done. Inside the fragment shader, you can render a pixel if the (U,V) values intersect or come within range of the line. You could do this for any shape or curve so long as the shader supports the math and instruction set. Although I can't fathom why anyone would want to go to such lengths.
#9
Posted 11 March 2009 - 02:47 PM
JarkkoL said:
If that is not an option, try looking into ID3DXLine, it should do the trick.
#11
Posted 11 March 2009 - 03:23 PM
-
Currently working on: the 3D engine for Tomb Raider.
#12
Posted 11 March 2009 - 04:39 PM
#14
Posted 12 March 2009 - 01:19 PM
.oisyn said:
1995 was a good year first and there are applications and applications second :) I'm sure you know very well that lines have their place under the sun.
#15
Posted 12 March 2009 - 01:42 PM
-
Currently working on: the 3D engine for Tomb Raider.
#16
Posted 12 March 2009 - 02:07 PM
.oisyn said:
Must....kill.... .oisyn.... must
#17
Posted 12 March 2009 - 03:44 PM
Yes, like that example, but also I have seen things like glowing lines, and a variety of different line effects. Can lines be drawn using fragment shaders?
#18
Posted 12 March 2009 - 04:55 PM
#19
Posted 14 March 2009 - 05:11 PM
tobeythorn said:
Yes, like that example, but also I have seen things like glowing lines, and a variety of different line effects. Can lines be drawn using fragment shaders?
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












