1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

GenericBuilding preview not working

Discussion in 'ObPlacer and ObPlacer XML' started by PlaneMad, 18/7/05.

  1. PlaneMad

    PlaneMad

    Joined:
    13/7/05
    Messages:
    7
    Country:
    india
    Arno, i havent been able to get the preview to work yet. I have reinstalled the dll's and switched buffering modes, but i dont see anything.
    Could it be possible that it hasnt recognized my FS texture folder which is f:/fs9/texture ?
    Just for your info i use an onboard 810 intel graphic chipset.
  2. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,347
    Country:
    netherlands
    Hi,

    If you open the file config.xml you should be able to see a tag named FsPath in there. That should show your FS folder. But I think you would get an error if it could not be found correct.

    Are you sure you have placed a new GenericBuilding as well? Otherwise no dynamic preview is shown.
  3. PlaneMad

    PlaneMad

    Joined:
    13/7/05
    Messages:
    7
    Country:
    india
    The Fspath is ok. I also have a generic building object in the xml, but the preview doesnt show.
    Is there anyother files that may be needed like .net framework etc. ?
  4. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,347
    Country:
    netherlands
    Hi,

    No, this tool has been made with VB6, so no .NET stuff is needed. And all other runtime files that are needed are included in the installer.

    So I guess it must be something else that goes wrong. When you look in the ObPlacer XML root, do you see a file called temp.bmp after starting ObPlacer XML?
  5. PlaneMad

    PlaneMad

    Joined:
    13/7/05
    Messages:
    7
    Country:
    india
    Arno, i have the bmp file. 11 files in total, i dont think anything is missing.
    Maybe its because most textures in my FS tex folder are in DXT?
    Anyway Arno, i can live without the preview, so dont worry about it too much.
    Id love to see some upgrades to your other tools :)
  6. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,347
    Country:
    netherlands
    The temp.bmp texture is due to the conversion of DXT to normal BMP (that is why the graphic DLL files by Martin Wright are needed). So it seems the process is going fine until there.

    I'll have to think about this, as I have no clear idea what is going wrong. I assume your graphical card supports OpenGL (and your video drivers do)? As almost any cards does nowadays this should be a stupid question :).
  7. delaa

    delaa

    Joined:
    24/7/05
    Messages:
    4
    Country:
    poland
    Hi !
    First TNX for the great tool :)
    But I got the problem with prev. of gen. build. also (lack of it!)
    haaa! but the strange thing happens when I try to resize the prev. window
    the image apearing for a while - (appearing and blinking) only when i'm moving a mouse (fot resizing prev. window) when window is not resized - no prev. at all ..

    any ideas (all dll's isntaled I hope and set to single buffering)

    gratz.from.poland. ;-)

    DeLaa
  8. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,347
    Country:
    netherlands
    Hi,

    Does this happen with both single and double buffering?
  9. delaa

    delaa

    Joined:
    24/7/05
    Messages:
    4
    Country:
    poland
    Hi !
    Not in double buff. mode !no trace of prev! :banghead: only on single buff. mode i had something (blinking to white) in prev. window but as I said only while resizing window.

    Gretz.
  10. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,347
    Country:
    netherlands
    OK, thanks. I will have to think a bit about this. Obviously it is something with the drawing in OpenGL. What kind of graphical card are you using?
  11. delaa

    delaa

    Joined:
    24/7/05
    Messages:
    4
    Country:
    poland
    --------------------
    GF6600GT Pine XFX
    --------------------
  12. PlaneMad

    PlaneMad

    Joined:
    13/7/05
    Messages:
    7
    Country:
    india
    Not a stupid questions as i dont think mine supports opengl. Intel 810 graphic chipset for my celeron 633Mhz, maybe time for a new PC :scratchch
    I cant run gmax with opengl, only Heidi. So i guess that explains it, i use a prehistoric PC :tapedshut
  13. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,347
    Country:
    netherlands
    Thanks for the info. I will try and see if I can find some answers with this information. Maybe I can make my OpenGL code more general or something like that.
  14. PlaneMad

    PlaneMad

    Joined:
    13/7/05
    Messages:
    7
    Country:
    india
    Arno, dont bother. Im sure im the only one without an AGP card.
    But it would be great if you could explain how the 'textureindex' atribbutes work?
  15. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,347
    Country:
    netherlands
    Hi,

    I still would like to know why it does not work. Maybe I can easily make the code more general :).

    The textureindex sets the mapping of your texture. A value of 256 means that the texture is displayed once. Setting it to 512 means the texture is repeated twice in that direction, etc.
  16. Stranger

    Stranger

    Joined:
    25/7/05
    Messages:
    120
    Hello Arno,

    I have same problem. No preview of generic building is shown in either double or single buffering mode. FSPath in config.xml is correct, temp.bmp is present. Graphic card - NVidia GeForce 2 MX400.

    If you are interested, I've discovered that some library objects have unusual reference point placement which is located on top of the object rather than bottom. Therefore if you place such an object at 0m/0ft AGL it will just stick of the ground a little or wont be shown at all, although in fact it is very tall.
    Some of such objects are:

    gen_stack01 - 72f14e2949f92b313c5a069a57dfdd28
    Constructcrane_large - 6fc40cc0437304cf159f0ea368735810
    Constructcrane_med - 1fc7d750435b3281291917b546c81e2b
    Constructcrane_small - 74a775694ad2a6a8777307a6687c933e

    Probably it is done to allow designer to place stacks and cranes of different heights using same library objects. Cranes can be used in conjunction with
    SCO_noaa_cranebase - d1c0b5a34d8769afbda0c78a8f546d21
    placed at ground level.

    Hope you find this interesting.
  17. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,347
    Country:
    netherlands
    Could one or two of you, who have trouble with the preview, drop me an email? I might have found something in the source. But I can only test it by sending you a beta version, as I can not reproduce the problem here.
  18. Stranger

    Stranger

    Joined:
    25/7/05
    Messages:
    120
    I'm ready for a test. Address is sent.
    Thanks
  19. PlaneMad

    PlaneMad

    Joined:
    13/7/05
    Messages:
    7
    Country:
    india
    Id love to help too, but unfortunatly my PCs software registry got corrupted :banghead:
  20. delaa

    delaa

    Joined:
    24/7/05
    Messages:
    4
    Country:
    poland
    ready for testing email in PM
    TNX

Share This Page