Latest Blogs

Hitman Ocean Technology

Posted by NLongchamps & JN Bucci

The Labs R&D team was presented with the challenge of creating a believable ocean water surface for IO’s Hitman game. Water rendering in real-time is notoriously difficult, and solutions usually comprise of several subsystems (and compromises) to complete the effect. Ocean rendering for Hitman presented several interesting challenges, most notably in the Sapienza level which featured transparent water, an arbitrary coastline including a beach the player could walk onto and an unrestricted view to the horizon in several directions. This implied a seamless transition of surface detail from close up to kilometers away. The solution also had to support some physics interactions (ragdolls, floating objects, etc) along with achieving a good visual benchmark while maintaining a relatively low performance footprint.

Supporting physics became the initial focus, as it could have design implications for the whole system. We also desired a lightweight solution that “just works”, meaning minimal requirements for code specific to water rendering, minimal setup work and art assets. We set forth to produce a practical, easy to use solution using adaptive hardware tessellation. The implementation offers believable surface deformation, a camera-to-horizon visibility distance and intrinsic geometry degradation (level of detail).

With the exception of the beach variant base mesh (explained later), the base geometry is very sparse. It is a radial ocean mesh roughly 800m across, divided into hectare patches. The total mesh diameter was found by placing circles representing the desired view distance at several extreme positions in the map. These areas were then encapsulated within a larger circle representing the final extents of the ocean surface geometry. Base geometric density (pre-tessellation) is 1 vertex per every 10m. Keeping a uniform distribution of triangles will allow to better control tessellation density.

Tessellation is adaptive over camera distance, and further restricted to the camera frustum. The camera distance function is computed in the vertex shader and passed on to other stages for modulating the tessellation factor, displacement amplitude and other effect weights.

Surface wave deformation is based completely on stateless functions, which means no displacement maps or other pregenerated data. This allows to sample surface displacement at any [X,Y] point given a specific time. Additionally the same function can be simultaneously run on CPU for physics, eliminating any frame latency that could have been problematic with a compute shader based approach.

For the functions themselves, Fast Fourier Transforms [Simulating Ocean Water, J.Tessendorf] were naturally considered but not used. Although FFT ocean simulation offers very convincing results, it suffers visibly from both spatial and temporal tiling that would have been a problem for the large expanses we wished to simulate. It is also expensive compared to other options. However, the tiling nature of FFT’s did have an advantage we could use : our water normal maps were baked from an offline FFT ocean simulation and tile perfectly.

Gerstner waves, on the other hand, are quite cheap and easy to implement. Conceptually, an ocean surface can be thought of as a chaotic mix of an endless amount of simple waves. Realistically though, ocean waves would interact (i.e collide and exchange energy). However in our method Gerstner waves are computed as surface delta positions and simply added. Adding together many waves at first did not give good results: when adding together many layers of random values, everything tends to converge towards the median value and cancel out the effect. In this case less was more.

Waves are divided into two categories : Omnidirectional waves and localized waves. Omnidirectional waves are the base of the effect and cover the entire surface (within range). They are a mix of 8 wavefronts : 3 primary wavefronts and 5 smaller secondary wavefronts. Odd numbers are used in order to radially distribute the waves evenly while avoiding symmetry.

Additionally to open water waves, the shader allows for localized waves which are applied using artist-placeable “wave objects”. These objects work a bit like forward lights in the shader. Each wave object adds 3 wave samples per vertex, and the shader allows for up to 4 wave objects per mesh. The worst case scenario is therefore 20 wave samples (8 omnidirectional + 4 * 3 localized) per tessellated vertex. Each wave object holds a set of parameters and passes these to the shader as constants. This allows the user to control area of effect size (radius), direction, wave amplitudes and curvature. In order to support nonlinear coastal topology, it is possible to warp the wavefront along the wave direction: The wave curve parameter allows for bidirectional warping in order to obtain a convex or concave curved wavefront.

Beaches are handled as a special case. The base surface mesh in this case supports arbitrary triangle size and vertex placement along the beach edge. There were mainly two problems to solve for beach meshes : How to get the water to “slide” onto the sand and how to keep the tessellation relatively uniform given an arbitrary mesh topology.

For the latter, the mesh was analysed offline by a simple script which computed each triangle’s area and normalized it to the area of a triangle on our 10m grid. This value was then averaged per vertex (to prevent tearing) and stored in a vertex color channel. This value is then used in the shader to bias the tessellation factor for those triangles. Smaller triangles are therefore proportionally tessellated to a lower value.

Beach interaction relies on a baked depth slice of the scenery, which is sampled by the ocean shader for the beach variant and allows the vertices to know the height of the beach at their location during displacement. This allowed to have the ocean mesh “slide onto” the beach mesh when moving. The depth map only stores a small strip of depth (hardcoded at a 4m [-2m,+2m] spread) which allows for an acceptable height resolution (~1.56cm) when packed into an 8bit texture channel. For area, roughly 4 texels per square meter seemed sufficient.

Shading parameters were mostly simplified to absorption and scattering, represented using a LUT texture mapped to linear view depth. The shader also made use of a quarter resolution render target for underwater geometries, allowing blurring, refraction, caustics and optionally diffraction. Impulses from interacting objects also create small ripples on the surface, which perturb the surface normals and in turn create additional caustics on the underwater floor.

The generic caustic effect was applied in the quarter resolution buffer by reconstructing the world position of geometries behind the water plane using the depth buffer. This position is then used to map an animated caustic effect.

A copy of the quarter resolution render target is then blurred and recombined with the unblurred version using a depth mask, keeping geometry near the surface sharper. This and subsequent steps are done in the ocean shader as we require the pixel depth of the surface.

Water coloring is done by using a LUT texture which maps to linear depth starting from the water surface to a given depth along the eye ray. Substance Designer was very useful here in order to create a procedural LUT asset which allowed rapid adjustments of the color ramps without going back and forth between the game and image editors. Using a LUT also allows to precompute complex falloff functions which are then simply mapped linearly at runtime. Finally the surface is shaded, which here mostly amounts to lighting, reflections and ocean foam.

Although the base geometry extended out several hundred meters, the edge of the mesh could be seen especially from certain elevated vantage points. “Horizon mapping” was used to render the ocean to the horizon line. The technique uses the camera vector and camera position to generate world space horizontal planar coordinates onto arbitrary geometry. Pixels above the “horizon” (cv.z > 0) are clipped. This method is used to render the ocean to infinity on simple and relatively near geometry, without having to resort to placing huge plane geometries in the distance. Because the generated coordinates are world space, they can be matched to the ocean shader for a seamless transition.

Here are a few images from Hitman game, provided by IO-Interactive team. It shows the multiple usage of the ocean technology throughout their games. Although this was design specifically for vast open water views, they also used it for most of their water needs including calm pool water or cinematic trailers. We are grateful of having worked with such a talented team, and make sure to put your hands onto a copy for Hitman.

      

      

Eidos-Montréal is always looking for great talent to help us shape the next generation of games. If you believe that you have what it takes, we definitely want to hear from you. Look at the current positions available at Eidos-Montréal and join our talented teams now!

Nicolas Longchamps | Principal Technical Artist
LABS R&D – Eidos-Montréal

Acknowledgements
Jean Normand Bucci | LABS R&D Director – Eidos-Montréal
Samuel Delmont | Senior Graphics Programmer
Jonas Meyer | Lead Programmer
Martin Vestergaard Kummel | Technical Director
Labs R&D team
Eidos-Montréal & IO-Interactive

 

Comments

Please login to make a comment

alicetaylor

great article, I was very impressed about it, wish you would have stayed next share

Fleeing The Complex

nateferguson92

Google
[url=https://www.google.com]Google[/url]
[Google](https://www.google.com)

Which One

Taylorshaw

Hitman is one of the iconic games of Eidos Montreal community. With the latest installments of game they have come up with a thrilling story line, lot of cool moves and actions and insane graphics. The waves itself is one challenging piece of a greater puzzle. cheapest cable tv

mike22222

This is extremely incredible and stunning game the designs are extraordinary and exceptionally alluring I played Hitman silent assassin, contracts and one more I overlook the name yet this series is astonishing and extremely enchanted to play this. Avengers White Wolf Jacket

hedotuyule

Employees can create their www.walmartone.com login account by using the WalmartOne Identification Number which is provided by the company.

Cruzmax

understudies with a sound learning base with accentuation on building solid essentials in the standards of instruction, moral qualities, and solid character and
Assignment Writing Services cement the same by the method for persistent preparing with mental techniques

sivaji

PNR is short name for 'Passenger Name Record'. It is a best ever in the record of IR-CRS compared to journey details for a passenger, or a group of passengers are saved.As we see every train has limited number of seats, sometime one may not get a confirmed reserved ticket.
Tupaki
PNR Status

kristenwarne

Students Assignment Help offers the top mis assignment services to all college students around the world. Our expert writers help you in writing assignments at a low price.

assignmentwriter

Being a CEO of Assignment Expert UK I don't get much time to play video games. But still, I somehow manage to take some time out for this. Thanks for sharing this amazing post. Loved it.

hedotuyule

The survey will consist of few questions and the customers need to answer them genuinely. You will need only a www.redlobstersurvey.com few minutes of time to complete the survey.

elizamolly

Hello
Such an amazing content. I work at Custom Essay Writers Service UK and I m a gaming freak too. Totally loved this post. Thanks for posting.

kristenwarne

3000+ assignment writing experts of Students Assignment Help will provide you the best assignment help from us, as all the writers possess unmatched assignment writing skills. Our assignment writing service has the best writers around to ensure that you get the best quality assignments at a reasonable price.

jijothomas

Do you need a proper assignment help in making economic assignment? You can use the platform of online providers who can give you an effective support and guidance in making the assignment perfectly. Service providers are efficient enough in providing you revised solution within time. Experts associated with the online service process have excellent academic background based on which they can maintain the superior quality of contents. Students do not have to face difficulties in carrying good marks.

We are here to help you with 100% unique Assignment Writing Services. We offers lowest price on all kind of dissertations, essay, assignments and more from 4000+ Ph.D. Experts with 24/7 support to make sure you will achieve A+ Grades in your college/universities.

bhb1

DPS are committed to provide our students with a sound knowledge base with emphasis on building strong fundamentals in the principles of education, moral values and strong character and concrete the same by the way of continuous training with psychological methods.

School in Jhunjhunu

johnk21

Amazing article post shared by the author.
He/She has specifically focused on all the main points and has covered all in a very descriptive manner.
As per the sources a latest ransomware has infected many computers nowadays and it is cryptominers ransomware malware.
Do you even know about what is anti adware? and how to remove any adware or virus from your computer easily.
There is a specific way on how to remove music finder browser virus from computer system.

canewiliamsan

I loved the way you discuss the topic great work thanks for the share Your informative post. Options Dissertation Writing Service Thanx for sharing such useful post keep it up :)

canewiliamsan

Those who come to read your article will find lots of helpful and informative tips DataBase Project Help Really i appreciate the effort you made to share the knowledge. This is really a great stuff for sharing. Keep it up . Thanks for sharing.


canewiliamsan

Hi buddy, your blog' s design is simple and clean and i like it. Your blog posts about Online writing Help are superb. Please keep them coming. Greets! Software Engineering Project Help

canewiliamsan

I personally like your post; you have shared good insights and experiences. Keep it up. Cobol Java Homework Help

canewiliamsan

I personally like your post; you have shared good insights and experiences. Keep it up. Cobol Java Homework Help

canewiliamsan

John arnold is an academic writer of the Dissertation-Guidance. Who writes quality academic papers for students to help them in accomplishing their goals. Casestudyaids.xyz

canewiliamsan

I'm getting excited about this kind of beneficial information of your stuff in the futureCaseHelp.xyz

canewiliamsan

I am so happy to read this. This is the kind of manual that needs to be given and not the random misinformation that's at the other blogs. Dirty Price Assignment Help

canewiliamsan

This is really great work.Target Market Selection Homework Help Thank you for sharing such a good and useful information here in the blog for students.

canewiliamsan

only professional writers can make this kind of material, cheers Case Study Analysis I appreciate this work amazing post for us I like it.

canewiliamsan

Pretty helpful material, much thanks for this article Business Set Up by visiting this site I found cool stuff here keep it up.


Maxwillor

Thank You So Much For providing the important information.
I am Max Willor, SEO Expert in a reputed company. All of your information is very useful to me.
I am providing Assignment Help Australia service to students.

Susansss

This hitman ocean technology is the great one to explore new things that were veiled before to the world. Though, explanatory videos have studied some new on the similar issues.

Skana

Thank you for your post, I look for such article along time, today i find it finally.
minion rush this post give me lots of advise it is very useful for me !

Kayla76

However, there may have been constraints when the sport turned into made. There have been a few years among ocean vs sand areas, and technology moves beforehand fast. At the time I felt the map become excellent, however now I think it's far way too small. Assignment Writing Service Probably considering the fact that we are now used to latest technology in games.

Huzi

Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts. Husband cheating

stevedalton225

The everyday caustic effect turned into applied inside the area resolution buffer by reconstructing the arena role of geometries at the back of the water plane using the depth buffer. This function is then used to map an lively caustic effect. Get Cheapest Essay Writing Service UK for student helps.

Huzi

Really impressed! Everything is very open and very clear clarification of issues. It contains truly facts. Your website is very valuable. Thanks for sharing. Benefits of Copper

Huzi

You completed certain reliable points there. I did a search on the subject and found nearly all persons will agree with your blog. Walnuts

Huzi

Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!. Kiwano

Huzi

Wow! Such an amazing and helpful post this is. I really really love it. It's so good and so awesome. I am just amazed. I hope that you continue to do your work like this in the future also. Benefits of Shrimp

Huzi

A good blog always comes-up with new and exciting information and while reading I have feel that this blog is really have all those quality that qualify a blog to be a one Black Pepper

Huzi

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon. Flaxseed

Huzi

I read that Post and got it fine and informative. Please share more like that... Chili Pepper

sk_khatri

I read a article under the same title some time ago, but this articles quality is much, much better. How you do this.. Stroke of Genius

ChrisGreenwelt

This technology is the best one to explore new things that were hidden before to the world. However, PhD dissertation writing services have researched some new on the same issues.

jaimewiersma

In my opinion, Blood Money is the winner. Top essay writing service uk: Hitman game a nice story, interesting characters and several ways of finishing the levels.

williamwilliam

Excellent way of presentation. It is not giving any bad impression for readers. All points are clear and understandable. Students can get best writing suggestions from assignment writing service

claraerwin

Excellent way of presentation. It is not giving any bad impression for readers. All points are clear and understandable. Students can get best writing suggestions from best thesis writing service

dogra

Our journey started as frontrunner to bring Apple technology to the Indian subcontinent. Today, SRSG has emerged as one of the leading full-service player offering an array of products and services for system integration, broadcast consultancy, IT infrastructure services, maintenance services and digital archiving services for the broadcast industry.

MacBook air dealers in Delhi

Apple service center Guwahati

ipad dealers in Mumbai

iMac dealers in Delhi

MacBook pro dealers in Delhi

Apple iphone SE dealers in Kolkata

EdwanJohn

Good way of telling, good post to take facts regarding my presentation subject matter, which i am going to deliver in my college Histogram Assignment Help

EdwanJohn

I genuinely appreciated understanding it. Sitting tight for some more incredible articles like this from you in the nearing days Data Mining Homework Help

EdwanJohn

The leading assignment help UK firm offers state of the art The Complete Reference Java Project services to its clients with a promise of delivering all the required work well within the deadline.

jammartinn1987

We offer our pest control Best Website for Doing Essays in toes Lauderdale, Boca Raton and a spread of surrounding areas like lighthouse factor and Oakland Park. If you need a fortress Lauderdale pest inspection name the hitman, john lots of hitman termite & pest manipulate. No longer best are we the high-quality within the enterprise at what we do controlling pests.

Stellaban

The ocean technology for the duration of their games. although this became design especially for tremendous open water views, they also used it for a maximum of their water needs which includes calm pool water or cinematic trailers. Essay Writing Service Switch off the lights, turn up the volume and ensure to observe it in full screen and 1080p!

Abbiealaric

The arrangement likewise needed to help a few material science cooperations alongside accomplishing a decent visual benchmark while keeping up a moderately low execution impression. The usage offers Online Essay Help trustworthy surface twisting, a camera-to-skyline perceivability separate and inherent geometry corruption

paulinaduncan

Zain Guru
[url="http://www.google.uk/"]Funter[/url]
[url=http://www.google.com/]7 Up[/url]

alisondaewon

It's enough not to be moralistic about this stuff, though. Research Paper Writing Help Hitman's hero is cool, but the world is frozen full of shallow critical and unsympathetic characteristics that conspire to make killing an art rather than offensive.

annamarsh

I bet it isn't always the western ideology specifically, however, greater of a popular UK essay writing services subject matter. For my part Hayao Miyazaki's work enchantment to a far wider target market, and that is due to the fact he purposely meant it to be viewed by many and is maintaining himself not too tied up with the one's genres that earn a particular type or set of audience. Some outline anime as animation made for the intake of a Japanese audience and with regard to their culture but what if your target audience is not typically eastern, but additionally different audiences within the western hemisphere, will this be considered real-blue anime or a Disney film-like undertaking. Once I saw Miyazaki's movie spirited away, it felt a piece of what might I typically experience when watching a Disney movie. I can best speculate that perhaps he turned into prompted via western animation or I wager its miles just his fashion. When it entails a standard theme, like nature, love, friendship or own family, it does now not in reality count plenty of what ideology it belongs, because I think all countries can reflect on the one's aforementioned subject matters. The question maybe is that why does Hayao Miyazaki stick with these sorts of stories or themes. Why can't I see him doing a bloody cyberpunk mecha anime with cyborg pilots? It makes me suppose whether he'd want to make one.

annamarsh

Essay Help

annchriss234

Wow! Thank you. I'm looking forward to this. I’ve been looking all over for this! Thank goodness I found it on this blog . You have made my day! Thanks again!I think this is engaging and eye-opening material. Thank you so much for caring about your content and your readers.

Visit : https://www.fastcustomessaywriting.com/

aylazander

Zain Guru

robertys

Google
[url=https://www.google.com]Google[/url]
[Google](https://www.google.com)
Which one is it.

ThomasMatthew

Hitman Contracts is the diversion in view of an impeccable story line and has an astonishing thought of weapons and innovation. The whole game is based on silent killing and assassination. It is the best one at any point presented in some other diversion. It has a huge weapon hold with ammunition and you can pick any weapon for any mission. assignment help | Assignment Empire

Archive

-->