Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.

A 3D WebGL based model of a dining/living/bed room with customizable animations and shaders, as well as a fully interactive version of the Zurero mini game, developed in the Graphical Applications Laboratory (LAIG) class.

Eduardo-LP-Silva/WebGL-Room-Modeling

Repository files navigation

Room Modeling

A 3D model of a dining/living/bed room created using WebGL.

image

Graph and YAS syntax

The objects displayed are first indicated in an XML document according to a specific (YAS) syntax. This document is then converted to a graph structure with the possibility of inheritance by a fully fledged parser which the application will then use to display said objects.

The objects mentioned in the XML can be complex, custom ones or can be simple pre-made (although with custom parameters as well) primitives.

The user can also declare custom materials, textures, light sources, background color, cameras, transformations and animations.

Animations

The animations supported can be linear or circular. In the linear animations, the object follows a set of control points indicated by the user. In the case of the circular ones, the object rotates horizontally around a given point. The total length of both types of animations can (and must) be specified.

NURBS

Some objects might make use of NURBS generated curves.

image

Shaders

The scenes may also contain custom terrain (static), water (moving) or similar given a height map for each texture.

image

Different Environments

The user can also choose between a set of environments/scenes.

image

.obj support

There is also integrated support for .obj models.

image

Zurero

The Zurero board game is available to play as well (through a prolog server set up by the user). The main interface with the game is done through a TV positioned next to the board. Here are displayed the score of each player and the time remaining in the current turn. The player can also choose here the type of game they want to play (PvP, PvE, EvE), the bot difficulty if applicable. They can also undo previous moves and watch a replay of the last game.

image

About

A 3D WebGL based model of a dining/living/bed room with customizable animations and shaders, as well as a fully interactive version of the Zurero mini game, developed in the Graphical Applications Laboratory (LAIG) class.

Topics

Resources

Stars

Watchers

Forks