Professional Web Applications Themes

how to put 2 3D member on the stage? - Macromedia Director 3D

Hi all I have problems with putting two or more 3D members on my progra More clearly, I have 2 3D cast member named "3DScene" and "3DAddition I write my script as --------------------------- property pSprit property p3DScen property p3DAdditio on beginSprite m pSprite = sprite(me.spriteNum p3DScene = pSprite.member ---line p3DAddition = pSprite.member -- line end beginSprit It appears that only the 1st line is recognised. The 2nd line doesn't work (I test by putting p3DAddition.model[1] and get "void" instead of a model name Any suggestion? : THanks heaps...

  1. #1

    Default how to put 2 3D member on the stage?

    Hi all
    I have problems with putting two or more 3D members on my progra
    More clearly, I have 2 3D cast member named "3DScene" and "3DAddition
    I write my script as
    ---------------------------
    property pSprit
    property p3DScen
    property p3DAdditio

    on beginSprite m
    pSprite = sprite(me.spriteNum
    p3DScene = pSprite.member ---line
    p3DAddition = pSprite.member -- line
    end beginSprit

    It appears that only the 1st line is recognised. The 2nd line doesn't work
    (I test by putting p3DAddition.model[1] and get "void" instead of a model name

    Any suggestion? :
    THanks heaps


    klnbtn Guest

  2. #2

    Default Re: how to put 2 3D member on the stage?

    Hello

    If you want to reference and use both W3D sprites in the same script, you can
    create a parent script with two different properties for the sprite references

    property pSpriteScen
    property pSpriteAdditio
    property p3DScen
    property p3DAdditio

    Rename the beginSprite handler as new and change the type of the script to
    Parent in the Property Inspector

    on new me, W3DSprite1, W3DSprite

    -- Parameter

    pSpriteScene= W3DSprite
    pSpriteAddition = W3DSprite

    -- Initializatio

    p3DScene = pSpriteScene.member ---line
    p3DAddition = pSpriteAddition .member -- line

    -- Instanc

    append the actorList, m
    return m

    en

    on stepFrame m
    -- Do something her
    en

    Then, in a movie script, when you create a child object, you pass on the
    references to the sprite to the new handler

    global gManage

    on startMovi
    gManager = new(script "ParentScriptName", sprite(1), sprite(2)
    en

    Karl


    Newt99 Guest

Similar Threads

  1. Replies: 1
    Last Post: November 7th, 02:18 AM
  2. Print the stage of the 3d member image
    By catarrento in forum Macromedia Director 3D
    Replies: 5
    Last Post: August 10th, 01:56 PM
  3. Replies: 3
    Last Post: July 14th, 12:52 AM
  4. member.rect does not work member.regpoint does
    By Nick in forum Macromedia Director Lingo
    Replies: 1
    Last Post: August 27th, 01:01 PM
  5. STAGE TO AVI..... ?
    By kwang woo lee in forum Macromedia Director Lingo
    Replies: 0
    Last Post: August 8th, 04:19 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139