Skip to content

Add option to configure the scene world space coordinate system#61

Merged
xbei-nv merged 1 commit intoNVIDIAGameWorks:mainfrom
jdswebb:configurable-coordinate-system
Mar 14, 2024
Merged

Add option to configure the scene world space coordinate system#61
xbei-nv merged 1 commit intoNVIDIAGameWorks:mainfrom
jdswebb:configurable-coordinate-system

Conversation

@jdswebb
Copy link
Contributor

@jdswebb jdswebb commented Mar 6, 2024

Description

Fixes NVIDIAGameWorks/rtx-remix#432.

SceneManager::calculateSceneRight() assumed a right-handed coordinate system, which meant it computed the wrong value for games using a left-handed coordinate system.

This change adds an option leftHandedCoordinateSystem which makes the world space coordinate system configurable. I have exposed this option on the developer GUI alongside the zUp option.

Testing

Tested in Star Wars Galaxies which uses a left-handed coordinate system. The terrain baking previously failed due to the incorrect value computed by SceneManager::calculateSceneRight():

image

Now works with the option enabled:

image

@jdswebb jdswebb marked this pull request as ready for review March 6, 2024 12:33
@Hakry
Copy link

Hakry commented Mar 11, 2024

Cherry picked this PR and tested locally
Screenshot 2024-03-11 001114

@NV-DM NV-DM requested a review from xbei-nv March 13, 2024 22:13
@xbei-nv xbei-nv merged commit b372417 into NVIDIAGameWorks:main Mar 14, 2024
@xbei-nv
Copy link
Collaborator

xbei-nv commented Mar 14, 2024

@jdswebb Hi could you add yourself as contributors to "Github Contributors" in ImGuiAbout::Credits::Credits()? Probably we need a new PR, exactly the same as this one then just add your name.

@jdswebb
Copy link
Contributor Author

jdswebb commented Mar 14, 2024

@jdswebb Hi could you add yourself as contributors to "Github Contributors" in ImGuiAbout::Credits::Credits()? Probably we need a new PR, exactly the same as this one then just add your name.

Sure, I misunderstood initially and didn't see that you backed out the merge of this one. New PR now here:

#65

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SceneManager::calculateSceneRight() assumes right handed coordinate system

3 participants