I did with very simple method. I sent to shader my cursor position in screen space. I read depth in that position from my depth buffer, then I did depth to world position transformation, that way I get the point my cursor is picking. Since I know my terrain position and dimmensions, I simply do (pickedPoint.xz-TerrainMinValue)/TerrainMaxValue - this way I get picked texture coordinate on my terrain displacement map. It works fine ![]()
- Viewing Profile: Posts: Tasaq
Community Stats
- Group Members
- Active Posts 98
- Profile Views 1,834
- Member Title Member
- Age 21 years old
- Birthday September 5, 1991
-
Gender
Male
User Tools
Contacts
Tasaq hasn't added any contacts yet.
Posts I've Made
In Topic: XNA terrain painting
13 May 2013 - 09:50 AM
In Topic: XNA terrain painting
10 May 2013 - 04:18 AM
Other option would be to just pre-tesselate the mesh and use that for picking and rendering.
That's good idea, thanks:) I also have been thinking about editing textures directly with model preview. I will try both options and see which is more convenient ![]()
If someone got other ideas and tips for terrain editors I will be thankful for sharing ![]()
In Topic: Goodbye Start button?
24 March 2013 - 06:28 AM
I don't have any desktop icons anymore just because I know what i'm looking for. I never have to go through the control panel because i can just type in "Network" and get to the network and sharing center, i can type "folders" and modify my folders settings, "Devices" to get to devices and printers, etc. Windows 8 just improves this process imo.
Agree 100%. I am using windows 8 and I am not going back to windows 7. When I want something I just type it instead of seraching the start button tree. I find it more convient ![]()
In Topic: OpenGL vs DirectX
27 February 2013 - 04:01 PM
I suggest changing the topic name because current one looks like asking for a meaningless war ![]()
Rewriting your whole code from openGL to DirectX would be time consuming, I would advise you to only change the strictly operating system bound functions (i think it's obvious one, and I can see you already achieved that). But if your aim is to learn (or revise) directx, it might be a good idea to do it ;)
In Topic: JBBRXG11(DirectX 11 in XNA) has its first compute shader running
16 February 2013 - 04:16 AM
Installer worked in my case, Windows 8 xna 4.0 + refresh. Everything works fine ![]()
- Home
- » Viewing Profile: Posts: Tasaq

Find content