Port of my city renderer

Discussion in 'Contribute' started by RHY3756547, Jan 14, 2014.

  1. RHY3756547

    RHY3756547 FreeSO Developer Staff Member Moderator

    Hmm, on AMD as well? I'll need to look into this - I might need to wait until the next draw call to create the assets instead of making them as soon as the reset occurs.
  2. RHY3756547

    RHY3756547 FreeSO Developer Staff Member Moderator

    Turns out I was right, the assets silently fail to generate if I try to draw them as soon as the device resets; I have to flag it to regenerate next draw call. This works for Intel, can you verify that it works for AMD too?

    https://dl.dropboxusercontent.com/u/122 ... Fix500.zip
  3. xezno

    xezno Member

    Because my computer is SPECIAL. Very, very special... If it's equivalent to that then I'm going to try it (hopefully) in VirtualB.
  4. zephyr2

    zephyr2 New Member

    It regenerates fine now, can minimize/maximize all I want :D
  5. RHY3756547

    RHY3756547 FreeSO Developer Staff Member Moderator

    Fantastic! Seems like I've hit all the bugs now; I'm not able to get a crash or break the view in any way anymore.
  6. JWofles

    JWofles Active Member

    all fixed,
    nice work!
  7. francot514

    francot514 Well-Known Member

    We should add the files in tso directory???
  8. RHY3756547

    RHY3756547 FreeSO Developer Staff Member Moderator

    For now the .zips include all the relevant files, so you can just extract them anywhere.
  9. RHY3756547

    RHY3756547 FreeSO Developer Staff Member Moderator

    Okay, that's everything finished! Just sent the pull request.
  10. zephyr2

    zephyr2 New Member

    Just wanted to confirm that the last build works on Intel HD 4000 and nVidia GeForce GTX 660M.
  11. Adéliàng

    Adéliàng Member

    Good work Rhys ! :D
  12. RHY3756547

    RHY3756547 FreeSO Developer Staff Member Moderator

    Hmm, just came across a rare bug where minimizing restoring would try to redraw without recreating the resources... Very weird.

    EDIT: Can't figure this one out, at first I thought the reset event might have been firing after the first redraw, but even when I set the regenerate data flag on DeviceLost it still crashes.

    EDIT2: Turns out every minimize the whole program was reloading!
  13. RHY3756547

    RHY3756547 FreeSO Developer Staff Member Moderator

  14. zephyr2

    zephyr2 New Member

    Yes, it still works. When restoring the window, it's all grey for about a second and then displays the city properly (this is not a bug though, I assume).
  15. AquilaSim

    AquilaSim Administrator Staff Member Moderator

    Idk if this is normal but when I zoom, I noticed a slight shift houses by raport to view the complete city/map view.

    Attached Files:

  16. RHY3756547

    RHY3756547 FreeSO Developer Staff Member Moderator

    The land flattens a bit when you zoom in (so you can see more land), so the houses do "change position" slightly.
  17. AquilaSim

    AquilaSim Administrator Staff Member Moderator

    ok, so it is normal or no? it will remain in the next upcoming release?
  18. RHY3756547

    RHY3756547 FreeSO Developer Staff Member Moderator

    Yep. The alternative is doing what the original does and rotating the view to true isometric (35.264 degrees vs 30 degrees) but this appears wrong as the houses and trees are rendered at 30 degrees, and computers aren't great at displaying 35.264 without horrible aliasing.

    EDIT: Actually, the issue in that image is that the houses are behind the hill. When you zoom in, the hill flattens and you can see behind it. I think the original game did display the house icon for even obscured houses, but again I'm not 100% sure.
  19. aidancheddar

    aidancheddar Active Member

    This is the best reference I got...
    [​IMG]
  20. William

    William Member

    Is it just me or this looks like sims 2? ;l

Share This Page