Autor Beitrag
JacFab
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 111



BeitragVerfasst: Sa 01.02.03 17:58 
Ich habe Mit GLScene die .3ds Datei, die ich mit Max gemacht habe auf eine Freeform geladen.
jedoch die Objekte, die ich in 3d studio max gespiegelt habe, werde nur um 180° gedreht dargestellt. Wenn ich die .3ds Datei jedoch mit MAX öffne wird alles korrekt dargestellt. Es muss also an GLScene liegen.
Hat einer von euch eine Idee??
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Sa 01.02.03 18:33 
normalerweise wird ja das Mesh direkt gespiegelt. Also liegt es weder an 3DSMax, noch an GLScene. Es sei denn, 3DSMax speichert die Spiegelung als Attribut in der Datei und berechnet es jedesmal neu (und GLScene interpretiert dann dieses Attribut falsch), aber das glaube ich nicht, weil es Schwachsinn wäre. Was sind denn die Einstellungen der FreeForm?

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
JacFab Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 111



BeitragVerfasst: Sa 01.02.03 19:25 
[quote]3DSMax speichert die Spiegelung als Attribut in der Datei und berechnet es jedesmal neu (und GLScene interpretiert dann dieses Attribut falsch)[/quote]

genau das ist meine vermutung, weil 3d max die .3ds datei völlig richtig öffnet.
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Sa 01.02.03 19:37 
das wäre auch für mich die einfachste, logische Begründung. Aber ich finde, daß das totaler Schwachsinn wäre, wenn man die ganzen Vektoren eh speichert und dann extra nochmal sagt, daß die gespiegelt sind. Dann müssten die Vektoren ja bei jedem Ladevorgang neu berechnet werden, nämlich umgekehrt. Und das ist meiner Meinung nach absolut unwirtschaftlich.
Also vermute ich eher, daß es an was anderem liegt. Du könntest ja auch mal in der GLScene-Newsgroup schauen, bzw selber dort fragen, was da los ist.

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Sa 01.02.03 19:37 
JacFab hat folgendes geschrieben:
jedoch die Objekte, die ich in 3d studio max gespiegelt habe, werde nur um 180° gedreht dargestellt.


Was ist denn der unterschied ob ich es spiegele oder um 180° drehe..? im endeffekt ist es doch gleich, oder???

Au'revoir,
Aya~
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Sa 01.02.03 19:41 
nein, aya!
Stell dich vor einen spiegel. Heb' deine recht Hand. Was tut dein Spiegelbild? Richtig, die linke Hand heben.
Bei einer Drehung um 180° würde diese Kopie von dir ebenfalls die rechte Hand heben. Klingt jetzt banal, hat aber in der Computergrafik schon seine Vorteile, wenn man etwas wirklich spiegeln kann. Zum beispiel bei einam Fantasy-Spiel: Wenn deine Rolle in einem Raum steht, in dem ein Spiegel an der wand hängt, dann sollte das Bild gespiegelt sein, nicht gedreht.

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Sa 01.02.03 19:43 
mh... ok, stimmt... :)

EDIT: Dann stimmt das mit den Atributen aber... :)
Denn *.3ds ist wohl das standardt Format von Max und nicht extra ein ExportFormat... und damit man nachdem man Max neustartet und die Datei öffnet auch wieder die schritte rückgängigmachen kann etc, muß es halt als Attribute / Script sprache gespeichert werden..

Einzige lösung is entweder den Loader so verbessern das er das auch richtig ließt (wobei ich mir mal denke das die *.3ds dateien ziemlich groß werden können, denn da steht ja nochmehr kram drin, auch dinge die den Loader garnet interressieren *g*), oder du suchst dir nen anständiges ExportFormat ;)

Au'revoir,
Aya~
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Sa 01.02.03 20:26 
3ds ist ein anständiges Exportformat.
Und die Undo-Liste würde ich als Programmierer so aufbauen:

Gespiegelt
Vektor1 hinzugefügt
Vektor0 von xyz nach xyz verschoben

Die Spiegelung also nicht als Attribut, sondern als Eintrag in einer Liste machen. Bei einem Klick auf Undo würde er also nochmal Spiegeln, die Spiegelung also rückgängig machen. Außerdem wäre sowas eh notwenig, da ein Attribut "mirrored" ja nichts darüber aussagt, wann gespiegelt wurde. Also müsste man es trotzdem in so eine Undo-Liste aufnehmen, nur daß dann eben das mirrored-Attribut entfernt wird und die Darstellung neu berechnet wird.
Du siehst also, es gibt keinen logisch nachvollziehbaren Grund, ein Attribut zu verwenden, außer das die Speicher-Geschwindigkeit zunimmt, dafür dauert aber das Laden länger. Und da ich öfter lade als speichere, wäre es mir als User lieber, wenn er es direkt umrechnen und das geänderte speichern würde.
Ich empfehle also weiterhin die Newsgroup, bzw einen Brief an den GLScene-Autor.


Moment mal... kann ein anderes Programm das Mesh denn richtig lesen. Zum Beispiel MilkShape oder Anim8or? Hast du das schon ausprobiert? Wenn andere es schaffen, liegt es tatsächlich an GLScene, wenn nicht, müsste man der Frage weiterhin nachgehen...

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
JacFab Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 111



BeitragVerfasst: Sa 01.02.03 20:56 
das hab ich noch nicht ausprobiert, aber wenn es geht, kann ich dir ja mal die 3ds datei per mail schicken.
gib mal deine adresse durch, wenn du willst!
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Sa 01.02.03 21:09 

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert