Jump to content

  • Log In with Google      Sign In   
  • Create Account

XNA 4.0 10k more draw different cube(not hardware instance)


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
9 replies to this topic

#1 John Yang   Members   -  Reputation: 111

Like
0Likes
Like

Posted 28 October 2012 - 06:16 AM

I'm using XNA 4.0 and I need 10k more draw cube(i don't need lighting and texture color.only just cube color).

I found hardware instance cube. But this is not possible. Because all cube is diffent.

how can many cube very fast draw ?



ps. current performance 1k cube(not texture image,only color) 15fps...-_-;

Sponsor:

#2 mhagain   Crossbones+   -  Reputation: 7965

Like
0Likes
Like

Posted 28 October 2012 - 06:31 AM

What's different about the cubes? Hardware instancing may still be possible.

It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.


#3 kauna   Crossbones+   -  Reputation: 2508

Like
1Likes
Like

Posted 28 October 2012 - 06:38 AM

WIth hardware instancing, drawing some thousand cubes should be almost trivial, unless drawing the cubes eat take a lot of pixel fill rate.

What is the difference between each cube? Hardware instancing doesn't exclude differences with the objects, for example all the objects have typically a different transformation, so using the same idea, they can have different color for example, or even different texture.

Cheers!

#4 John Yang   Members   -  Reputation: 111

Like
0Likes
Like

Posted 28 October 2012 - 07:07 AM

  • all cubes size different . is possible hardware instance ?

Edited by jinjin54321, 28 October 2012 - 07:15 AM.


#5 kauna   Crossbones+   -  Reputation: 2508

Like
0Likes
Like

Posted 28 October 2012 - 07:19 AM

all cubes size different . is possible hardware instance ?


Well size is something that you can express with the transformation matrix, and since all the cubes already need one to have different position and orientation, you'll just need to scale the transformation matrix to produce smaller and bigger cubes.

Cheers!

#6 John Yang   Members   -  Reputation: 111

Like
0Likes
Like

Posted 28 October 2012 - 07:29 AM


all cubes size different . is possible hardware instance ?


Well size is something that you can express with the transformation matrix, and since all the cubes already need one to have different position and orientation, you'll just need to scale the transformation matrix to produce smaller and bigger cubes.

Cheers!


Thank you!!!!!!!!! ... Can I found example source?

#7 John Yang   Members   -  Reputation: 111

Like
0Likes
Like

Posted 28 October 2012 - 07:34 AM


all cubes size different . is possible hardware instance ?


Well size is something that you can express with the transformation matrix, and since all the cubes already need one to have different position and orientation, you'll just need to scale the transformation matrix to produce smaller and bigger cubes.

Cheers!


Oh.. I real Want XNA 3D Candle Chart So..I Need Cube... Do you know Candle Chart? Candles Many different(Size...Up Down Candle..) .
Is this Possible Hardware Instance ?

http://www.online-stock-trading-guide.com/image-files/candlestick-chart-large.png

I want this style 3d chart... ..;; is this possible hardware instance?

#8 kauna   Crossbones+   -  Reputation: 2508

Like
1Likes
Like

Posted 28 October 2012 - 07:36 AM

Yes,

Googling "XNA 4.0 instancing" gives pretty good results for the described problem.

Cheers!

#9 kauna   Crossbones+   -  Reputation: 2508

Like
1Likes
Like

Posted 28 October 2012 - 07:46 AM

Yes, that kind of chart is possible to do with instancing. Just use non-uniform scaling. That is, scale more at the y/z-direction.

Cheers!

#10 John Yang   Members   -  Reputation: 111

Like
0Likes
Like

Posted 28 October 2012 - 07:50 AM

Yes, that kind of chart is possible to do with instancing. Just use non-uniform scaling. That is, scale more at the y/z-direction.

Cheers!


Oh!~ My God!~~~ Thank you!!!!!!! Thank you!!! Thank you!!!;;; Posted Image




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS