Argh!
-
Can't draw a point in Silverlight 5 3D. :wtf: Feels like going back in time.
Wout
-
Can't draw a point in Silverlight 5 3D. :wtf: Feels like going back in time.
Wout
-
Can't draw a point in Silverlight 5 3D. :wtf: Feels like going back in time.
Wout
No. Going back in time would be 4D :) But it's only logical. Remember your geometry. How many dimensions does a point have?
"I just exchanged opinions with my boss. I went in with mine and came out with his." - me, 2011 ---
I am endeavoring, Madam, to construct a mnemonic memory circuit using stone knives and bearskins - Mr. Spock 1935 and me 2011 -
No. Going back in time would be 4D :) But it's only logical. Remember your geometry. How many dimensions does a point have?
"I just exchanged opinions with my boss. I went in with mine and came out with his." - me, 2011 ---
I am endeavoring, Madam, to construct a mnemonic memory circuit using stone knives and bearskins - Mr. Spock 1935 and me 2011 -
wout de zeeuw wrote:
Silverlight 5
Give it time. Its still in beta, right?
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
Well, apparently they left it out on purpose... http://forums.silverlight.net/forums/t/227751.aspx[^]. I'm kinda baffled.
Wout
-
No. Going back in time would be 4D :) But it's only logical. Remember your geometry. How many dimensions does a point have?
"I just exchanged opinions with my boss. I went in with mine and came out with his." - me, 2011 ---
I am endeavoring, Madam, to construct a mnemonic memory circuit using stone knives and bearskins - Mr. Spock 1935 and me 2011In CAD many people draw dashed/dotted lines. So a dot would be a 1x1 pixel thingy, and a line would be a 1 pixel wide thingy.
Wout
-
Can't draw a point in Silverlight 5 3D. :wtf: Feels like going back in time.
Wout
You can, but you need to download the XNA Math Helper[^] first. Then you can use the VertexPositionColor and Vector3 classes to help you. For instance:
Vector3 pt = new Vector3(1,1,0);
VertexPositionColor[] vertices = new VertexPositionColor[1];
vertices[0] = new VectorPositionColor(pt, color); // Where color is the colour of the brush
VertexBuffer vertexBuffer = new VertexBuffer(device, VertexPositionColor.VertexDeclaration, vertices.Length, BufferUsage.WriteOnly);
vertexBuffer.SetData(0, vertices, 0, vertices.Length, 0);
device.SetVertexBuffer(vertexBuffer);Forgive your enemies - it messes with their heads
My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility
-
Uhm, no. In math, a point has exactly zero dimensions. It's infinitely small and not much to draw therefore. What you probably want to do is to set a small (but not not infinitely small) sprite or billboard at some 3D coordinates.
"I just exchanged opinions with my boss. I went in with mine and came out with his." - me, 2011 ---
I am endeavoring, Madam, to construct a mnemonic memory circuit using stone knives and bearskins - Mr. Spock 1935 and me 2011 -
You can, but you need to download the XNA Math Helper[^] first. Then you can use the VertexPositionColor and Vector3 classes to help you. For instance:
Vector3 pt = new Vector3(1,1,0);
VertexPositionColor[] vertices = new VertexPositionColor[1];
vertices[0] = new VectorPositionColor(pt, color); // Where color is the colour of the brush
VertexBuffer vertexBuffer = new VertexBuffer(device, VertexPositionColor.VertexDeclaration, vertices.Length, BufferUsage.WriteOnly);
vertexBuffer.SetData(0, vertices, 0, vertices.Length, 0);
device.SetVertexBuffer(vertexBuffer);Forgive your enemies - it messes with their heads
My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility
We have made those classes ourselves, this is not problematic. The problematic part is that there's no PointList primitive, just LineList, LineStrip, TriangleList, TriangleStrip.
Wout
-
In CAD many people draw dashed/dotted lines. So a dot would be a 1x1 pixel thingy, and a line would be a 1 pixel wide thingy.
Wout
But in 3D, a point consists of 3 dimensions - x/y and z.
Forgive your enemies - it messes with their heads
My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility
-
Uhm, no. In math, a point has exactly zero dimensions. It's infinitely small and not much to draw therefore. What you probably want to do is to set a small (but not not infinitely small) sprite or billboard at some 3D coordinates.
"I just exchanged opinions with my boss. I went in with mine and came out with his." - me, 2011 ---
I am endeavoring, Madam, to construct a mnemonic memory circuit using stone knives and bearskins - Mr. Spock 1935 and me 2011There is a point in time when it is not there. There is a point in time when it is. Then there is a another point in time when it ceases. If you wish to talk maths then please continue, but be aware that there are a lot more than three dimensions, and that the temporal and hyperspatial ones can do some odd things. Have you ever worked out the volume of a tesseract (aka a Hypercube)? Very difficult, and what about projections of future positions of known points, a clock is useful there!
------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] Trolls[^]
-
But in 3D, a point consists of 3 dimensions - x/y and z.
Forgive your enemies - it messes with their heads
My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility
-
There is a point in time when it is not there. There is a point in time when it is. Then there is a another point in time when it ceases. If you wish to talk maths then please continue, but be aware that there are a lot more than three dimensions, and that the temporal and hyperspatial ones can do some odd things. Have you ever worked out the volume of a tesseract (aka a Hypercube)? Very difficult, and what about projections of future positions of known points, a clock is useful there!
------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] Trolls[^]
Yes, sure I know a hypercube :)
"I just exchanged opinions with my boss. I went in with mine and came out with his." - me, 2011 ---
I am endeavoring, Madam, to construct a mnemonic memory circuit using stone knives and bearskins - Mr. Spock 1935 and me 2011 -
We have made those classes ourselves, this is not problematic. The problematic part is that there's no PointList primitive, just LineList, LineStrip, TriangleList, TriangleStrip.
Wout
Is it possible to make a line with length of one instead. I don't think anyone can tell the difference.
-
Is it possible to make a line with length of one instead. I don't think anyone can tell the difference.
You could, but very inconvenient, because the length 1 is in screen space, whilst you normally define all vertices in model space, and then position your camera etc etc. So to do the dots you'd have to mess up the whole standard rendering pipeline.
Wout
-
Can't draw a point in Silverlight 5 3D. :wtf: Feels like going back in time.
Wout
You could convert your product to OpenGL. :-D
-
You can, but you need to download the XNA Math Helper[^] first. Then you can use the VertexPositionColor and Vector3 classes to help you. For instance:
Vector3 pt = new Vector3(1,1,0);
VertexPositionColor[] vertices = new VertexPositionColor[1];
vertices[0] = new VectorPositionColor(pt, color); // Where color is the colour of the brush
VertexBuffer vertexBuffer = new VertexBuffer(device, VertexPositionColor.VertexDeclaration, vertices.Length, BufferUsage.WriteOnly);
vertexBuffer.SetData(0, vertices, 0, vertices.Length, 0);
device.SetVertexBuffer(vertexBuffer);Forgive your enemies - it messes with their heads
My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility
-
You could convert your product to OpenGL. :-D
-
There is a point in time when it is not there. There is a point in time when it is. Then there is a another point in time when it ceases. If you wish to talk maths then please continue, but be aware that there are a lot more than three dimensions, and that the temporal and hyperspatial ones can do some odd things. Have you ever worked out the volume of a tesseract (aka a Hypercube)? Very difficult, and what about projections of future positions of known points, a clock is useful there!
------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] Trolls[^]
Dalek Dave wrote:
there are a lot more than three dimensions
Mathematically, yes...in reality, it remains to be proved.
-
You could convert your product to OpenGL. :-D
Our product already does OpenGL. I mentioned on the MSDN forum that OpenGL 1.1 can do points, but this invoked a "I know, OpenGL..., but let's be realistic" reply...
Wout