Villacaleb / slimdx

Automatically exported from code.google.com/p/slimdx
MIT License
0 stars 0 forks source link

Refraction function needs #688

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Enter a full description of the problem, along with any repro steps or
other useful information. If you have a patch, that's great -- just embed
it here as well. INCLUDE WHAT VERSION YOU ARE USING!!

Dear, Sir,

There is Reflection function both in Slimdx, XNA, but not Refraction is not 
included. Both Reflection and Refration is included in HLSL and used for Ray 
tracing.

And I hope Reflection and Refraction use Hardware Accelerration of GPU.
Just as using HLSL, but much simple methods of setting Hardware Acceleration.

Original issue reported on code.google.com by supradom...@naver.com on 12 Jun 2010 at 2:18

GoogleCodeExporter commented 9 years ago
If you want hardware acceleration you'll have to do it with shaders. To make 
the SlimDX function hardware accelerated would actually make it slower!

A refraction function would make a nice complement to the reflection function, 
I've looked it up and I think the included code should work.

Original comment by Frassle on 12 Jun 2010 at 4:11

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thank you very much...
I thank understand, and will not try SLIMDX or MDX hardware accelerated for 
this.

May I ask one more? what if HLSL shader?
Reflection and Refraction algorithm is mainly made of vector functions,
if I make it HLSL code and make it hardware accelerated still slower?..
Frankly, I want to make a simple real time ray tracing viewer in my cad system.
(CPU : i7 980 extreme, GPU :Geforce GTX470). with SlimDX(without hlsl, without 
Device settings, etc, I can make my code, but with Device settings,.. and more 
initializing settings it is confusing for me,..)
Is it possible to make ray tracing viewer using HLSL shader? (for optical 
engineering purpose, I have to receive hlsl calculation result for each mesh's 
and use its data (if possible) in .Net code :VB.net ^.^ or C#)
I'm now considiring to learn C# to use HLSL,..(if not possible and if slower, I 
do not want to consume time for HLSL any more)

Original comment by supradom...@naver.com on 13 Jun 2010 at 3:06

GoogleCodeExporter commented 9 years ago
Tagging as SlimMath.

Original comment by Mike.Popoloski on 21 Aug 2010 at 4:39

GoogleCodeExporter commented 9 years ago
Closing in favor of the corresponding SlimMath issue: 
http://code.google.com/p/slimmath/issues/detail?id=7

Original comment by Mike.Popoloski on 31 Aug 2010 at 3:36