[WIP] Dual View

Discussion in 'Mod Discussions' started by Corang, February 22, 2014.

  1. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    not really sure how to explain this, refer to picture, also very hacky, I am rendering 3 camera views to get this to work. Also just so no one gets confused, this is one monitor, two views.

    I'm awesome.png

    I am including the two files i changed, the html and the css
    In the css i changed position settings and in the html I added 2 holodecks and took the primary pip away If someone could make this into a mod I with credit to me I would be extremely happy as this is my first attempt at modding, Cheers!

    WARNING: Your performance will drop a fair bit if you use this.

    Attached Files:

    Last edited: February 22, 2014
    cola_colin and cptconundrum like this.
  2. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    I can only see 2 views of the world.
    Can you get 3 to work? My tries so far all resulted in only 2 fully working. More views would just not show any textures/models.

    EDIT:
    Thinking further:
    Any good ideas how to setup PA over 3 screens that are not the same height?
    It's only one stupid window :S
  3. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    The third view is under the view on the left in order for the second one to render
    cola_colin likes this.
  4. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    So you also suffer from the issue of only being able to make it up to 2 views.

    Damn... I feel we are hitting a hardcoded current limitation.
  5. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    I'm wondering if the limit isn't in coherent. you've been able to get more than one PiP but didn't get textures to show up, right? They could be doing some graphics magic that only allows two copies of everything in memory or something.
  6. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    I doubt that is a hard limit for Uber though, all JS code is basically yelling at me: "I WAS WRITTEN FOR N VIEWS WHERE N EQUALS YOUR WILDEST DREAMS"
    maxpowerz, stormingkiwi and Raevn like this.
  7. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    Yeah, but the javascript dev might have just been a little ahead of the graphics people. Whatever the reason, I do expect to see more PiPs available once they do a second pass on it.
  8. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    I'd very surprised if there were an arbitrary 2 as a limit somewhere. Makes absolutely no sense to me.
    Only as a "this is a feature work in progress" limit.
  9. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    I figured out how to get three views (or more). For every pip you render there has to be another one DIRECTLY under it, take a look at these new html and css files @cptconundrum @Cola_Colin

    3 views.PNG

    Warning: this will MURDER your performance

    Attached Files:

    cola_colin likes this.
  10. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    In other words when you make a new PiP you have to put
    HTML:
    <holodeck class="pip4"></holodeck>
    <holodeck class="pip4"></holodeck>
    instead of
    HTML:
    <holodeck class="pip4"></holodeck>
    cola_colin likes this.
  11. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    Is that download corrupt? I can't open it.
  12. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    in the three views I am rendering 5 cameras though only 3 are visible, only the primary holodeck does not require a "shadow"
    cola_colin likes this.
  13. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    sorry i used 7zip, let me reupload using windows-zip
  14. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    I'll have to take a look later or tomorrow. If you're getting three viewports, I'm guessing there is a clever trick we can use to get it down to just using three holodecks instead of 5. I love all this research though. It has been less than a day and we are already hacking away at our new toys!
  15. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    here

    Attached Files:

    cola_colin likes this.
  16. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    Also, weren't you just learning how to code a month ago? Nice progress!
  17. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    thanks :D
    cola_colin likes this.
  18. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    I LOVE YOU. I ******* LOVE YOU
    cptconundrum and Raevn like this.
  19. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    hahahahaha no problem, glad to help
    cola_colin likes this.
  20. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    I can't believe how quickly we all just hacked the pip in almost every way. I still want to get it resizable though

Share This Page