I've done everything few times after. Select the right engine(was experiment with both). Set the preview. So my steps are: 1. Run Prefab 2. Create in Prefab Cube primitive. 3. Select BSP/PVS Generator 4. Set camera above the cube. 5. Set preview. 6. Select right engine 7. In preview I see only white screen, I don't see the cube primitive that must be under me(camera)
When I do everything the same, except second step, I set Cone primitive - everything work. I'm trying to record a video, and show my steps. On 13 окт, 11:15, Fabrice3D <[email protected]> wrote: > if you set "preview" on for the generation, you do get to see your project? > if it runs, chances are very high, it is related to the path. > > if you have a structure like > > project > fla > prefabBSPprojectclass.as > mybspfile.awd > images > someimage.jpg > > you do not need to pass a custompath > "images" url is composed by default by AWData if no custompath is set > > it would look like this > _tree = BSPTree(AWData.parse(new BSPFile())); > > Since short the classes are now in two tastes > 3.5.2 (Number3D) or 3.6 (Vector3D) > make sure you select the right engine destination for the generation > Same rule for your project, run it in the right engine version. > > Also in your past message you say you add stuff and get errors. > Can you please try it first with no custom code? add no child to the tree. > Please use the generated bspproject.as file as is for the sake of testing. > > Fabrice > > On Oct 13, 2010, at 9:26 AM, metSyS wrote: > > > > > customPath is correct. My textures are in "images" folder. > > > On 12 окт, 22:47, Fabrice3D <[email protected]> wrote: > >> make sure the customPath entered is correct. > > >> Fabrice > > >> On Oct 12, 2010, at 8:04 PM, metSyS wrote: > > >>> I'm creating Cube primitive? set camera above the cube primitive, and > >>> compile. Then I copy two files(MyBSPProject.as & MyBSPTree.awd) and > >>> one folder(images), to the source folder and run it in debug player. > >>> The player says that there is an error : > > >>> "TypeError: Error #1009: Не удается вызвать свойство или метод со > >>> ссылкой на объект "null". > >>> at away3d.loaders::AWData/linkBSPNodes()[E:\T E A C H\Flex\projects > >>> \MyPlateTree\src\away3d\loaders\AWData.as:440] > >>> at away3d.loaders::AWData/prepareData()[E:\T E A C H\Flex\projects > >>> \MyPlateTree\src\away3d\loaders\AWData.as:281] > >>> at away3d.loaders::AbstractParser/parseGeometry()[E:\T E A C H\Flex > >>> \projects\MyPlateTree\src\away3d\loaders\AbstractParser.as:420] > >>> at away3d.loaders::Loader3D/loadTextures()[E:\T E A C H\Flex\projects > >>> \MyPlateTree\src\away3d\loaders\Loader3D.as:508] > >>> at away3d.loaders::Loader3D$/parse()[E:\T E A C H\Flex\projects > >>> \MyPlateTree\src\away3d\loaders\Loader3D.as:61] > >>> at away3d.loaders::AWData$/parse()[E:\T E A C H\Flex\projects > >>> \MyPlateTree\src\away3d\loaders\AWData.as:519] > >>> at MyPlateTree/initAway3D()[E:\T E A C H\Flex\projects\MyPlateTree\src > >>> \MyPlateTree.as:91] > >>> at MyPlateTree/init()[E:\T E A C H\Flex\projects\MyPlateTree\src > >>> \MyPlateTree.as:67] > >>> " > > >>> the line 91 is: > > >>> _tree = BSPTree(AWData.parse(new BSPFile(), {customPath:"./ > >>> images/"})); > > >>> What am I do wrong?
