Issues.00286 - lordmundi/wikidoctest GitHub Wiki

00286: ability to scale models on load

« 00285 | Issues | 00287 »

Summary: ability to scale models on load

Created: 2010–11–02 15:39

Status: Released

Category: Request

From: frankie

Version: 2.1

Released_In: 2.2

Description:

many times models are built in a unit that needs to be converted for use in edge. this is a request for a feature that allows a new model to be scaled by a certain amount in all directions when the model is loaded.


Comments

brad November 03, 2010, at 04:44 PM: This is done. The "@scale sx sy sz" command in structure files in now supported". Also a new command to the DSP_CONFIG→DATA→SCENE_LOAD→MODELS block has been added. The syntax is:

node(blabla); model(kilometer_model.bin); scale(39370.079,39370.079,39370.079);

results in the geometry of "kilometer_model.bin" to be scaled from Kilometers to inches for node "blabla".


« 00285 | Issues | 00287 »

Associated Commits

| commit | 5bc2dc551747edab8e593d8d5941e9aac5c85dff link6 | || | Author: | Brad Bell | | Date: | Thu Nov 4 04:47:19 2010 -0500 | | Message: | [@Issue 00286: Fixed a bug found during testing. @] |

Affected Files:

lib_Linux_FC3/libdsp.a       | Bin 957794 -> 958450 bytes
 lib_Linux_FC3/libdsp_s.so    | Bin 799577 -> 799821 bytes
 lib_Linux_FC3/libviewer.a    | Bin 1077966 -> 1077918 bytes
 lib_Linux_FC3/libviewer_s.so | Bin 908119 -> 908050 bytes
 lib_Win32/libdsp.dll         | Bin 295424 -> 295424 bytes
 lib_Win32/libviewer.dll      | Bin 494592 -> 494592 bytes
 6 files changed, 0 insertions(+), 0 deletions(-)

| commit | 6f3e0b5960da43e5fa70faafcfd51a785e9a74dc link7 | || | Author: | Brad Bell | | Date: | Thu Nov 4 04:21:51 2010 -0500 | | Message: | [@Issue 00286: updated so that it will properly scale the normals as well as the geometry. This fixes a problem with shading that would show up if the model was scaled in a non uniform way. @] |

Affected Files:

lib_Linux_FC3/libviewer.a    | Bin 1077038 -> 1077966 bytes
 lib_Linux_FC3/libviewer_s.so | Bin 907195 -> 908119 bytes
 lib_Win32/libviewer.dll      | Bin 494080 -> 494592 bytes
 3 files changed, 0 insertions(+), 0 deletions(-)

| commit | a344e6b2160417c2757a12604252b138b70d32f6 link8 | || | Author: | Brad Bell | | Date: | Wed Nov 3 10:21:45 2010 -0500 | | Message: | [@Issue 00286: added ability to scale models at load time. The dsp_hslloader now honours the "@scale sx sy sz" command. Also the node line in the config file for models can now include the "scale(sx,sy,sz)" option which will apply a one time scale to the models specified for that node, this includes all lod models for that node as well. @] |

Affected Files:

lib_Linux_FC3/libdsp.a            | Bin 956330 -> 957794 bytes
 lib_Linux_FC3/libdsp_s.so         | Bin 799021 -> 799577 bytes
 lib_Linux_FC3/libviewer.a         | Bin 1074786 -> 1077038 bytes
 lib_Linux_FC3/libviewer_s.so      | Bin 905735 -> 907195 bytes
 lib_Win32/libdsp.dll              | Bin 293888 -> 295424 bytes
 lib_Win32/libviewer.dll           | Bin 493056 -> 494080 bytes
 plugin_Linux_FC3/dsp_hslloader.so | Bin 62571 -> 53130 bytes
 plugin_Win32/dsp_hslloader.dll    | Bin 24576 -> 24576 bytes
 8 files changed, 0 insertions(+), 0 deletions(-)