Welcome, Guest
Username: Password: Remember me
Components and Libraries for Graphics 3D Development, discussions, problems and suggestions
  • Page:
  • 1

TOPIC:

HowToCopyOrCreateObject 7 years 11 months ago #9391

  • Milen
  • Milen's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 0
I'm new in 3D programming.

Now try to use GLScene. I use CT 5.70, Win 7 64 bit.

1. How can I copy 3D object? Scene editor has only delete option. In Object Inspector - I can copy, for example GLSphere1, but when I try to paste - its not copies.
2. I try to create new object in Runtime:
Procedure TForm1.FormShow(Sender: TObject);
Begin
  Sph2 := TGLSPhere.Create(GLDummyCube1.AddNewChild(TGLSphere));
  Sph2.Position.X := -0.2; Sph2.Position.Y := 0.2;
  Sph2.Slices := 64; Sph2.Stacks := 64;
  Sph2.Material.MaterialLibrary := GLMaterialLibrary1;
  Sph2.Material.LibMaterialName := 'GreyMetal';
end;

I from Scene editor have one sphere in DummyCube, but this second do not appear.

How it can be implement this (copy object in editor and create in runtime)?

Please Log in or Create an account to join the conversation.

HowToCopyOrCreateObject 6 years 9 months ago #10827

  • Felipe Macedo
  • Felipe Macedo's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0
Good question, I am a new CT user, and I was wondering the samething! I´m working on a college project, and we have to use 3 DummyCubes that have the same properties, and same objects into it. It would be a huge saving time the copy paste option!

Please Log in or Create an account to join the conversation.

HowToCopyOrCreateObject 6 years 6 months ago #10954

  • BeanzMaster
  • BeanzMaster's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 17
  • Thank you received: 0
Hi for all questions about GLZcene i suggest you to go and post questions at sourceforge.net/p/glscene/discussion/.

Milen Say :

1. How can I copy 3D object? Scene editor has only delete option. In Object Inspector - I can copy, for example GLSphere1, but when I try to paste - its not copies.

Right click on the object in the (iDE) Object Inspector like any other component and select Cut/Copy or paste

2. I try to create new object in Runtime:

You must set the "visible" property

Cheers
Jerome;D (BeanzMaster)

Please Log in or Create an account to join the conversation.

Last edit: by BeanzMaster.
  • Page:
  • 1