Autor Beitrag
LH_Freak
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 385

Win XP
D7 PE, D2k5 Trial
BeitragVerfasst: Sa 18.12.04 18:22 
Kann mir vielleicht einer sagen, wie ich 3D Modelle (z.B. von
3D Studio Max) in ein OpenGL Projekt krieg?
Mit welchem Programm mach ích am besten Levels für Spiele
und lade sie dann in Delphi?
Ich hoffe ihr könnt mir helfen!

[::] LH_Freak [::]
sourcehunter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 482

Win XP | Suse 10.1
Delphi 2005 Pers.
BeitragVerfasst: Sa 18.12.04 21:18 
Ich hab letztens auf [url]www.DelphiGl.com[/url] was darüber gelesen.

_________________
Linux und OpenSource rulez!
LH_Freak Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 385

Win XP
D7 PE, D2k5 Trial
BeitragVerfasst: Sa 18.12.04 22:17 
Die hab ich auch schon durchgeschaut.
Ich finde aber enfach keinen Loader für 3DS Dateien!

[::] LH_Freak [::]
rochus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 416

Win XP Prof, Fedora Core 4, SuSE 7.0
D7 Ent, D2005 Pers
BeitragVerfasst: So 19.12.04 13:43 
schau mal genauer auf der seite nach, am besten im forum, da suchst mal nach noeska, der hat mal einen geschrieben.

gruß
rochus

_________________
Im Nachhinein ist man immer ein Schlauch!
"Dream as if you'll live forever, live as if you'll die today!" James Dean
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: So 19.12.04 14:09 
LH_Freak Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 385

Win XP
D7 PE, D2k5 Trial
BeitragVerfasst: So 16.01.05 20:51 
Der geht net!
Phobeus
ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1280

Linux (FC6), WinXP Pro (Box)
D6 Pers, D7 Pro, FPC 2.x
BeitragVerfasst: So 16.01.05 20:54 
wow... eine solche Fehlerbeschreibung rühmt von einer Brilianz, die ich nichtmal von einem Microsoft DirectX9 Installer, feststellt, dass kein Platz mehr frei ist und meldet "Installation abgebrochen". Das Loader von Noeska arbeitet prinzipiell absolut einwandfrei... mit einer genaueren Fehlerbeschreibung könnte man vielleicht helfen...

_________________
"Menschen sterben nicht wenn man sie zu Grabe trägt, sondern wenn sie ihre Träume verlieren..."
DaRkFiRe
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 526

WinXP Home & Professional
C, C++, Delphi
BeitragVerfasst: Mo 17.01.05 10:14 
Also ich weiß nicht: ich würde lieber Wavefront OBJ Files nehmen...

_________________
Lang ist der Weg durch Lehren - kurz und wirksam durch Beispiele! Seneca
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: Mo 17.01.05 10:16 
warum?
MitschL
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 211

Win 98 SE, Win 2000
D5 Pers, D6 Pers und D7 Pro
BeitragVerfasst: Mo 17.01.05 10:47 
Moin,

Wie sieht es dann bei den 3D-Studio-Max-Machern aus? Bei denen müßte doch ein Developer-Eckchen sein. Da sollten sich Möglichkeiten und Links finden lassen, behaupte ich mal. (Nutze selbst Lightwave, und da gibt es anständig Zeugs für mich...)

gegrüßt!

_________________
"Bloßes Ignorieren ist noch keine Toleranz." (Theodor Fontane)
DaRkFiRe
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 526

WinXP Home & Professional
C, C++, Delphi
BeitragVerfasst: Mo 17.01.05 10:53 
Wavefront OBJs exportieren alles, Objektgeometrie, samt Normalen, Texturkoordinaten, etc. und Materialien Texturdateien etc. Haben das auch auf Arbeit, ist recht einfach zu verwenden (wenn ihr es schützen wollt, schreibt einfach ein eigenes Format).

3D Studio MAX kann mit Hilfe eines Plugins diese Dateien exportieren.

_________________
Lang ist der Weg durch Lehren - kurz und wirksam durch Beispiele! Seneca
LH_Freak Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 385

Win XP
D7 PE, D2k5 Trial
BeitragVerfasst: Mo 17.01.05 17:33 
Der zeigt einfach nichts an (aber wenn ich's in MCAD importiere geht`s)

Ich benutze zum Testen die Modelle von Scifi3D

Gibt es vielleicht einen Loader für *.MAX Dateien?
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Mo 17.01.05 18:08 
stimmt deine kamera, deine matrix, hast du das objekt korrekt scaliert? Zeig mal Code!

Zitat:
Gibt es vielleicht einen Loader für *.MAX Dateien?
wenn du bis jetzt keinen geschrieben hast, eher nicht? Aber das sind ja auch 3dsmax projektdateien die auch 3dsmax spezifische einstellungen, etc. mitspeichern.

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
LH_Freak Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 385

Win XP
D7 PE, D2k5 Trial
BeitragVerfasst: Mo 17.01.05 18:16 
Also, ich versuch's die ganze Zeit mit der OPENGL15_VCL_TEMPLATE
und rufe glTranslatef(0,0,-5) auf.
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Mo 17.01.05 18:35 
wie lädst du das modell (Code)?

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
LH_Freak Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 385

Win XP
D7 PE, D2k5 Trial
BeitragVerfasst: Mo 17.01.05 18:39 
häh, jetzt will der plötzlich ne dglTextures.pas von mir!?
Phobeus
ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1280

Linux (FC6), WinXP Pro (Box)
D6 Pers, D7 Pro, FPC 2.x
BeitragVerfasst: Mo 17.01.05 18:47 
Präzisiere einmal deine Aussage (Fragen?). Eine dglTextures.pas ist mir bisher nicht geläufig (kann auch das Hirn sein). Meine Vermutung zu deinem eigentlichen Problem ist, dass das Model größer ist, weitaus größer. Setz die Kamera weiter weg.

_________________
"Menschen sterben nicht wenn man sie zu Grabe trägt, sondern wenn sie ihre Träume verlieren..."
LH_Freak Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 385

Win XP
D7 PE, D2k5 Trial
BeitragVerfasst: Mo 17.01.05 18:49 
Der meckert jetzt er könnte kein Image von einem Stream laden.
Ich lade ja aber aus einer Datei ?! :autsch: :autsch: :autsch: :autsch: :autsch: :autsch: :autsch:

Und er sucht die Texturen in nem anderen Verzeichnis.

Moderiert von user profile iconChristian S.: Beiträge zusammen gefasst, bitte Edit-Funktion nutzen
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Mo 17.01.05 18:58 
ist es so schwer ein bisschen code zu zeigen?
und sicherlich kann man in der ModellKlasse einen texturePath angeben (bei noeska's auf jeden Fall)
ich glaube noeska nimmt die Textures.pas, die müsste aber bei seinem Package dabei sein

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
LH_Freak Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 385

Win XP
D7 PE, D2k5 Trial
BeitragVerfasst: Mo 17.01.05 19:05 
ausblenden Delphi-Quelltext
1:
2:
3:
XWing := Tall3dsMesh.Create(nil);
XWing.TexturePath := 'Modelle\xwing3ds\';
XWing.LoadFromFile('Modelle\xwing3DS\X-Wing.3ds');


So, hier lade ich das Modell.

@Phobeus:
Ne er markiert mir ja immer die Zeile:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
procedure TAll3DSMesh.CalculateRenderOrder;
var
  m: integer;
  found: integer;
  matloop: integer;
begin
  found := 0;
  m := 0;
  while m < FNumMeshes - 1 do
  begin
    if m < FNumMeshes - found then
    begin
      for matloop := 0 to High(FMesh[FrenderOrder[m]].FmatID) do
      begin
        if FMaterial[FMesh[FrenderOrder[m]].Fmatid[matloop]].Ftransparency < 1.0 then
        begin
          found := found + 1;
          FRenderOrder[m] := FNumMeshes - Found;
          FRenderOrder[FNumMeshes - Found] := m;
          m := m - 1; //a new mesh is placed at renderorder so it has to be checked again...
        end;
      end;
    end;
    m := m + 1;
  end;
end;